This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52521] [C++11] user defined literals and order of declaration
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Mar 2012 10:10:29 +0000
- Subject: [Bug c++/52521] [C++11] user defined literals and order of declaration
- Auto-submitted: auto-generated
- References: <bug-52521-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52521
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-22 10:10:29 UTC ---
Author: jakub
Date: Thu Mar 22 10:10:24 2012
New Revision: 185683
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185683
Log:
Backported from mainline
2012-03-14 Jakub Jelinek <jakub@redhat.com>
PR c++/52521
* parser.c (lookup_literal_operator): Return fn only if
processed all arguments from args vector and argtypes is
void_list_node.
* g++.dg/cpp0x/udlit-args2.C: New test.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/udlit-args2.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/parser.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog