diff options
author | Mike Stump <mrs@gcc.gnu.org> | 2000-01-28 19:44:45 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2000-01-28 19:44:45 +0000 |
commit | 74dc0d8cabeefe571958ad34a76e1185b4f678e0 (patch) | |
tree | 4ba3addb28d6f7db61da9aa2c667eb42a4c3a897 | |
parent | 52bea68432b328568fecb275db3744ef746b3788 (diff) | |
download | gcc-74dc0d8cabeefe571958ad34a76e1185b4f678e0.zip gcc-74dc0d8cabeefe571958ad34a76e1185b4f678e0.tar.gz gcc-74dc0d8cabeefe571958ad34a76e1185b4f678e0.tar.bz2 |
Fix recent small bug
From-SVN: r31671
-rw-r--r-- | gcc/cp/decl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 1406d64..215a5fb 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3938,7 +3938,9 @@ pushdecl (x) if (oldlocal) { tree d = oldlocal; - while (oldlocal && DECL_DEAD_FOR_LOCAL (oldlocal)) + while (oldlocal + && TREE_CODE (oldlocal) == VAR_DECL + && DECL_DEAD_FOR_LOCAL (oldlocal)) { oldlocal = DECL_SHADOWED_FOR_VAR (oldlocal); } |