re PR c++/23229 (g++ gives incorrect error message with void main() and a void function)
authorAndrew Pinski <pinskia@physics.uc.edu>
Fri, 28 Oct 2005 20:25:55 +0000 (20:25 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Fri, 28 Oct 2005 20:25:55 +0000 (13:25 -0700)
commit9a1c562a7dffed364bd5213c9848a00478999506
treeac86dcbd6e63260aa752f6f51f4d938c9c43f36f
parent7dcd894f70f356bbc80abf90157ec70b9b85de9d
re PR c++/23229 (g++ gives incorrect error message with void main() and a void function)

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.

From-SVN: r105960
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/main-2.C [new file with mode: 0644]