aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-10-28 20:59:05 +0000
committerAndrew Pinski <pinskia@physics.uc.edu>2005-10-28 20:59:05 +0000
commit89bd7ba737de92f51ff0daa1f2a1894044e280d5 (patch)
treea6a4d87a35568a4bfdcdc14b3e05b3e7b706e113 /gcc/cp
parent00de9852adbc8d1b4b800308140aeb05d2c1760b (diff)
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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@105963 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-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 81da122dab4..8776b1f5b65 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 07278ff9a1c..7e38ec3dff1 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;