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++/29735] [4.0/4.1/4.2/4.3 regression] ICE on "main" returning vector



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

Author: jakub
Date: Tue Nov 28 13:04:03 2006
New Revision: 119288

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119288
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_2-branch/gcc/testsuite/g++.dg/warn/main-3.C
Modified:
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/decl.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


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