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] |
Hi,this issue, error recovery in C++98 mode, is a bit tricky: as far as I can see, it boils down to the fact that in C++98 mode we don't want to handle specially std::initializer_list. Otherwise, after the error message we crash in convert_like_real where we try to handle ck_list, @ line 6056. With the below we emit the exact same diagnostic we emit for init_list or any other non special name.
Tested x86_64-linux. Thanks, Paolo. ////////////////////
Attachment:
CL_57947
Description: Text document
Attachment:
patch_57947
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |