This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24449] Unable to declare friend main() from class template
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Oct 2012 14:38:19 +0000
- Subject: [Bug c++/24449] Unable to declare friend main() from class template
- Auto-submitted: auto-generated
- References: <bug-24449-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24449
--- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-10-12 14:38:19 UTC ---
Author: paolo
Date: Fri Oct 12 14:38:11 2012
New Revision: 192402
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192402
Log:
/cp
2012-10-12 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/24449
* decl.c (grokfndecl): When checking for ::main declarations
use PROCESSING_REAL_TEMPLATE_DECL_P().
/testsuite
2012-10-12 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/24449
* g++.dg/parse/friend-main.C: New.
Added:
trunk/gcc/testsuite/g++.dg/parse/friend-main.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog