]> gcc.gnu.org Git - gcc.git/commitdiff
decl.c (grokparms): Don't bash a permanent list node if we're in a function.
authorJason Merrill <jason@yorick.cygnus.com>
Wed, 17 Sep 1997 18:18:09 +0000 (18:18 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 17 Sep 1997 18:18:09 +0000 (14:18 -0400)
* decl.c (grokparms): Don't bash a permanent list node if we're
in a function.

From-SVN: r15516

gcc/cp/ChangeLog
gcc/cp/decl.c

index 185f24b9f6a134e2c3fa135b01757c1975e1fe52..7e1460fcb679990816283f3ee51c46cfe7bcfab8 100644 (file)
@@ -1,3 +1,8 @@
+Wed Sep 17 10:31:25 1997  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * decl.c (grokparms): Don't bash a permanent list node if we're
+       in a function.
+
 1997-09-17  Brendan Kehoe  <brendan@lisa.cygnus.com>
 
        * Makefile.in (CONFLICTS): Fix s/r conflict count to 18.
index c57f522e7a39945151a760f2eb02a06f95750627..1b153589bea77ae52d8e656b2a3a13ca56604f02 100644 (file)
@@ -10040,7 +10040,7 @@ grokparms (first_parm, funcdef_flag)
                  TREE_CHAIN (last_decl) = decl;
                  last_decl = decl;
                }
-             if (TREE_PERMANENT (list_node))
+             if (! current_function_decl && TREE_PERMANENT (list_node))
                {
                  TREE_PURPOSE (list_node) = init;
                  TREE_VALUE (list_node) = type;
This page took 0.175409 seconds and 5 git commands to generate.