]> gcc.gnu.org Git - gcc.git/commit
re PR c++/64959 (SFINAE in UDLs)
authorAndrea Azzarone <azzaronea@gmail.com>
Thu, 12 Feb 2015 20:21:34 +0000 (20:21 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 12 Feb 2015 20:21:34 +0000 (15:21 -0500)
commitbc81eb3f77b27d46e25c218cfd9f32c89cc36b3c
tree9e8f65f24d3a49b152bf5bb8ea477528a1d4764e
parent864f0146f052c560b81794aced67f5d095d241a3
re PR c++/64959 (SFINAE in UDLs)

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.

From-SVN: r220656
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]
This page took 0.057909 seconds and 5 git commands to generate.