* decl.c (grokfndecl): Remove the setting
of the return type of the function type
of main after erroring about must returning
int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105963
138bc75d-0d04-0410-961f-
82ee72b054a4
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
+ * decl.c (grokfndecl): Remove the setting
+ of the return type of the function type
+ of main after erroring about must returning
+ int.
+
+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.
newtype = build_function_type (integer_type_node,
oldtypeargs);
TREE_TYPE (decl) = newtype;
- TREE_TYPE (TREE_TYPE (decl)) = integer_type_node;
}
inlinep = 0;
publicp = 1;