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 <kreb...@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 <kreb...@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