PR c++/64959
commitf1db0def100f11d6214aa9a9c812fe7e0aef1a57
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Feb 2015 20:21:34 +0000 (12 20:21 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Feb 2015 20:21:34 +0000 (12 20:21 +0000)
tree9e8f65f24d3a49b152bf5bb8ea477528a1d4764e
parentbb98c289b07babc5b47304e7c2d21b86bda451d7
PR c++/64959
* parser.c (lookup_literal_operator): Return all candidates.
(cp_parser_userdef_char_literal): Simplify error handling.
(cp_parser_userdef_numeric_literal):  Pass tf_warning_or_error.
(cp_parser_userdef_string_literal): Pass tf_warning_or_error.
Also give higher priority to standard string UDL operator.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220656 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/udlit-namespace-ambiguous.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/udlit-namespace-using-directive.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/udlit-resolve.C
gcc/testsuite/g++.dg/cpp0x/udlit-sfinae-neg.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/udlit-sfinae.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/udlit-char-template-sfinae-neg.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/udlit-char-template-sfinae.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C [new file with mode: 0644]