This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |