[Bug c++/86082] user-defined literals are not converted to the execution charset
krebbel at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 25 07:17:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86082
--- Comment #3 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Author: krebbel
Date: Mon Jun 25 07:16:59 2018
New Revision: 262003
URL: https://gcc.gnu.org/viewcvs?rev=262003&root=gcc&view=rev
Log:
C++: Fix PR86082
When turning a user-defined numerical literal into an operator
invocation the literal needs to be translated to the execution
character set.
gcc/cp/ChangeLog:
2018-06-25 Andreas Krebbel <krebbel@linux.ibm.com>
PR C++/86082
* parser.c (make_char_string_pack): Pass this literal chars
through cpp_interpret_string.
(cp_parser_userdef_numeric_literal): Check the result of
make_char_string_pack.
gcc/testsuite/ChangeLog:
2018-06-25 Andreas Krebbel <krebbel@linux.ibm.com>
PR C++/86082
* g++.dg/pr86082.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/pr86082.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list