This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29735] [4.0/4.1/4.2/4.3 regression] ICE on "main" returning vector
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2006 13:04:14 -0000
- Subject: [Bug c++/29735] [4.0/4.1/4.2/4.3 regression] ICE on "main" returning vector
- References: <bug-29735-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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