From 7f0dbff3607628e68395992ac86e3e659c7e1b09 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Fri, 28 Oct 2005 20:59:05 +0000 Subject: [PATCH] decl.c (grokfndecl): Remove the setting of the return type of the function type of main after... 2005-10-28 Andrew Pinski * 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 --- gcc/cp/ChangeLog | 7 +++++++ gcc/cp/decl.c | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 81da122dab4..8776b1f5b65 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2005-10-28 Andrew Pinski + + * 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 PR C++/23229 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; -- 2.30.2