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]

[PATCH PR C++/58781, 59867, 60249 ] Various user-defined string literal issues involving character encodings, dropped bytes, semi-infinite loops


Please disregard previous email "Re: [Bug c++/60249] [c++11] Compiler goes into semi-infinite loop with wrong usage of user defined string literals"
A new patch with tweaked testcase is attached.  Sorry for the noise.

I finally fixed these weird user-defined string literal bugs.

I was messing with cp_token stream unnecessarily and poorly. Changed by using a tree in cp_parser_userdef_string_literal.

PR C++/58781 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58781> - Unicode strings broken in a strange way PR C++/59867 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59867> - Template string literal loses first symbol PR C++/60249 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60249> - Compiler goes into semi-infinite loop with wrong usage of user defined string literals Plus I fixed an misleading error message for string literal operator templates (not available in C++11).

Built and tested clean on x86_64-linux.

OK?

I would also like to apply this to 4.9.

Ed Smith-Rowland


Attachment: CL_udlit
Description: Text document

Attachment: patch_udlit
Description: Text document


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