From 1143ba33eca6edfd9f7a8db722596f9dca735ea0 Mon Sep 17 00:00:00 2001
From: mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 3 Nov 1999 06:58:48 +0000
Subject: [PATCH] 	* decl.c (grokfndecl): Remove dead code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30368 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/cp/ChangeLog | 4 +++-
 gcc/cp/decl.c    | 3 ---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 15e22e4d99c4..fcf01dd69848 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,7 @@
 1999-11-02  Mark Mitchell  <mark@codesourcery.com>
 
+	* decl.c (grokfndecl): Remove dead code.
+
 	* dump.c (dequeue_and_dump): Fix thinko for catch-clauses.
 
 1999-11-02  Scott Snyder  <snyder@fnal.gov>
@@ -14648,4 +14650,4 @@ Wed May 14 19:08:28 1997  Mike Stump  <mrs@cygnus.com>
 	(finish_function): Put the base init code for constructors just
 	after the parm cleanup insns.
 	(struct cp_function): Add last_parm_cleanup_insn.
-	(pu
\ No newline at end of file
+	(pu
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 14770e2fa4d5..40d13967c0fe 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -8455,9 +8455,6 @@ grokfndecl (ctype, type, declarator, orig_declarator, virtualp, flags, quals,
   if (check < 0)
     return decl;
 
-  if (check && funcdef_flag)
-    DECL_INITIAL (decl) = error_mark_node;
-
   if (flags == NO_SPECIAL && ctype && constructor_name (cname) == declarator)
     {
       tree tmp;
-- 
GitLab