decl.c (grokfndecl): Remove the setting of the return type of the function type of main after...
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
This commit is contained in:
parent
9a1c562a7d
commit
7f0dbff360
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
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
|
||||
|
|
|
@ -5722,7 +5722,6 @@ grokfndecl (tree ctype,
|
|||
newtype = build_function_type (integer_type_node,
|
||||
oldtypeargs);
|
||||
TREE_TYPE (decl) = newtype;
|
||||
TREE_TYPE (TREE_TYPE (decl)) = integer_type_node;
|
||||
}
|
||||
inlinep = 0;
|
||||
publicp = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue