]> git.ipfire.org Git - thirdparty/gcc.git/commit
C++: Fix PR86082
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Jun 2018 07:16:59 +0000 (07:16 +0000)
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Jun 2018 07:16:59 +0000 (07:16 +0000)
commit7480ddbff8cfbcb2eb278960b93e8c7ffc4edbaf
treea711fc4960082a402a1883a26bd05cb740675df1
parente00b562090267fd9b5b79b9da69528bd368bfccc
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262003 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr86082.C [new file with mode: 0644]