[Bug c++/29735] [4.0/4.1/4.2/4.3 regression] ICE on "main" returning vector

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 28 13:06:00 GMT 2006



------- Comment #3 from jakub at gcc dot gnu dot org  2006-11-28 13:06 -------
Subject: Bug 29735

Author: jakub
Date: Tue Nov 28 13:06:23 2006
New Revision: 119289

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119289
Log:
        PR c++/29735
        * decl.c (grokfndecl): Check main's type after applying
        attributes, not before.

        * g++.dg/warn/main-3.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/warn/main-3.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/decl.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29735



More information about the Gcc-bugs mailing list