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.
From-SVN: r105963
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;