re PR c++/55582 ([C++11] Unable to define string user-defined literal without leading...
authorEd Smith-Rowland <3dw4rd@verizon.net>
Thu, 14 Feb 2013 02:55:42 +0000 (02:55 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Thu, 14 Feb 2013 02:55:42 +0000 (02:55 +0000)
commit561f7fc72cbe475f1661e457731bb7d3b99f82a1
tree835d414e4efbc7f21d5a4f16cd4e2d5968134664
parent94504fd4840c1d67e96d4cf4759d21de3398ef0c
re PR c++/55582 ([C++11] Unable to define string user-defined literal without leading underscore.)

gcc/libcpp/

2013-02-13  Ed Smith-Rowland  <3dw4rd@verizon.net>

PR c++/55582
* libcpp/lex.c (lex_raw_string): Allow string literal with suffix
beginning with 's' to be parsed as a C++11 user-defined literal.

gcc/testsuite/

2013-02-13  Ed Smith-Rowland  <3dw4rd@verizon.net>

PR c++/55582
* g++.dg/cpp0x/udlit-string-literal.h: New.
* g++.dg/cpp0x/udlit-string-literal.C: New.

From-SVN: r196041
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/udlit-string-literal.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/udlit-string-literal.h [new file with mode: 0644]
libcpp/ChangeLog
libcpp/lex.c