This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23229] [4.0/4.1 Regression] g++ gives incorrect error message with void main() and a void function
- From: "pinskia 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 Oct 2005 20:52:53 -0000
- Subject: [Bug c++/23229] [4.0/4.1 Regression] g++ gives incorrect error message with void main() and a void function
- References: <bug-23229-11115@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from pinskia at gcc dot gnu dot org 2005-10-28 20:52 -------
Subject: Bug 23229
Author: pinskia
Date: Fri Oct 28 20:52:44 2005
New Revision: 105961
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=105961
Log:
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/23229
* decl.c (grokfndecl): Create a new function type
after erroring out about main not returning int.
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/23229
* g++.dg/warn/main-2.C: New test.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/warn/main-2.C
- copied unchanged from r105960, trunk/gcc/testsuite/g++.dg/warn/main-2.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/decl.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23229