This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24449] Unable to declare friend main() from class template


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]