diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1997-09-17 18:18:09 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1997-09-17 14:18:09 -0400 |
commit | 66f2e88dd604cf09981e7f95aa52b1ec8756c5b0 (patch) | |
tree | ffff3081e632e6e3bc1eb23904e1c47e165fab0d /gcc | |
parent | 8552680f15eba7e49bf72d9e00fd0c4615e9a07e (diff) | |
download | gcc-66f2e88dd604cf09981e7f95aa52b1ec8756c5b0.zip gcc-66f2e88dd604cf09981e7f95aa52b1ec8756c5b0.tar.gz gcc-66f2e88dd604cf09981e7f95aa52b1ec8756c5b0.tar.bz2 |
decl.c (grokparms): Don't bash a permanent list node if we're in a function.
* decl.c (grokparms): Don't bash a permanent list node if we're
in a function.
From-SVN: r15516
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 185f24b..7e1460f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index c57f522..1b15358 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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; |