On 12/16/2014 12:49 PM, Paolo Carlini wrote:
I see what you mean: try to somehow realize that grokdeclarator issued
an error and we are in error recovery. What about directly addressing
NSDMIs, the specific case at issue, thus the below? A bit ad-hoc-ish but
on the other hand should be lighter than calling function_declarator_p,
etc, to figure out...

Well, since only functions can be friends at this point, since types take a different path, maybe change the if (!friend_p) just above to
if (!friend_p || TREE_CODE (decl) != FUNCTION_DECL)?

Jason

Reply via email to