OSDN Git Service

PR c++/50958
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Nov 2011 19:27:30 +0000 (19:27 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Nov 2011 19:27:30 +0000 (19:27 +0000)
commitb06c89b674a97ae989872ee46c47e3bc9e81f8cc
treec5bf0a4816e7907735b0ce901cff5513fb6278af
parent5eb5096ff8ad6c34fe6df1101d87dfa96144971c
PR c++/50958
gcc/cp/
* parser.c (lookup_literal_operator): New.
(cp_parser_userdef_char_literal): Use it.
(cp_parser_userdef_numeric_literal): Use it.
(cp_parser_userdef_string_literal): Use lookup_name.
libcpp/
* expr.c (cpp_userdef_char_remove_type): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181595 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/dfp/pr33466.c
gcc/testsuite/g++.dg/cpp0x/udlit-declare-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-implicit-conv-neg.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/udlit-member-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-raw-length.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/udlit-raw-op-string-neg.C
gcc/testsuite/g++.dg/cpp0x/udlit-resolve.C [new file with mode: 0644]
libcpp/ChangeLog
libcpp/expr.c