]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/24449 (Unable to declare friend main() from class template)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 12 Oct 2012 14:38:11 +0000 (14:38 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 12 Oct 2012 14:38:11 +0000 (14:38 +0000)
commite74a506f4eec90fc1d4839f8cde506be8f99c9de
treee7b34a56f7034d83f32c0d141c6cd696622fecc9
parent5e54f81df1b2336a3ddc4f77180f4e579436b663
re PR c++/24449 (Unable to declare friend main() from class template)

/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.

From-SVN: r192402
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/friend-main.C [new file with mode: 0644]