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]

[C++ Patch] PR 57673


Hi,

we currently fail to parse this rather simple NSDMI usage (note that wrapping the whole initializer in parentheses works around the problem because cp_parser_cache_group handles the special case).

Simply detecting that we are parsing an ellipsis in an nsdmi and not ending the main while loop in that case appears to work fine. If we think we must be stricter we may consider keeping memory that the previous token was a sizeof or... something else.

Tested x86_64-linux.

Thanks,
Paolo.

////////////////////////

Attachment: CL_57673
Description: Text document

Attachment: patch_57673
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]