Whenever seemingly normal code fails with errors like syntax error at `\{' , it's highly likely that grokdeclarator is returning a NULL_TREE for whatever reason.
syntax error at `\{'