C++: Fix PR86082
commit4f1c88ae5892fad3d0cf248c6da5ffb51a61c9aa
authorAndreas Krebbel <krebbel@linux.ibm.com>
Mon, 25 Jun 2018 07:16:59 +0000 (25 07:16 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Mon, 25 Jun 2018 07:16:59 +0000 (25 07:16 +0000)
treea711fc4960082a402a1883a26bd05cb740675df1
parentc5ce6638f4deb1417bed3666077822cc5fb12dc9
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.

From-SVN: r262003
gcc/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr86082.C [new file with mode: 0644]