aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-10-28 20:59:05 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-10-28 13:59:05 -0700
commit7f0dbff3607628e68395992ac86e3e659c7e1b09 (patch)
treea6a4d87a35568a4bfdcdc14b3e05b3e7b706e113 /gcc
parent9a1c562a7dffed364bd5213c9848a00478999506 (diff)
downloadgcc-7f0dbff3607628e68395992ac86e3e659c7e1b09.zip
gcc-7f0dbff3607628e68395992ac86e3e659c7e1b09.tar.gz
gcc-7f0dbff3607628e68395992ac86e3e659c7e1b09.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/cp/decl.c1
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 81da122..8776b1f 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,12 @@
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.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 07278ff..7e38ec3 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -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;