diff options
author | Mike Stump <mrs@gcc.gnu.org> | 1995-01-24 08:19:58 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 1995-01-24 08:19:58 +0000 |
commit | e1cd6e56ad04b7be6484182156fc1d4a9b3ecf12 (patch) | |
tree | 2e419e0011c5d5a08784d03105e0a98dd36b2c32 /gcc/cp/spew.c | |
parent | 43238b97ad68430cc52df6df558c3fb4c62bb502 (diff) | |
download | gcc-e1cd6e56ad04b7be6484182156fc1d4a9b3ecf12.zip gcc-e1cd6e56ad04b7be6484182156fc1d4a9b3ecf12.tar.gz gcc-e1cd6e56ad04b7be6484182156fc1d4a9b3ecf12.tar.bz2 |
53rd Cygnus<->FSF merge
From-SVN: r8794
Diffstat (limited to 'gcc/cp/spew.c')
-rw-r--r-- | gcc/cp/spew.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/spew.c b/gcc/cp/spew.c index c28e2c1..296c8f6 100644 --- a/gcc/cp/spew.c +++ b/gcc/cp/spew.c @@ -242,6 +242,7 @@ int looking_for_template; extern struct obstack *current_obstack, *saveable_obstack; tree got_scope; +tree got_object; int yylex() @@ -316,7 +317,7 @@ yylex() if (lastiddecl != trrr) { lastiddecl = trrr; - if (got_scope) + if (got_scope || got_object) tmp_token.yylval.ttype = DECL_NESTED_TYPENAME (trrr); } break; @@ -334,8 +335,11 @@ yylex() lastiddecl = trrr; got_scope = NULL_TREE; /* and fall through to... */ + case IDENTIFIER_DEFN: case TYPENAME: + case TYPENAME_DEFN: case PTYPENAME: + case PTYPENAME_DEFN: consume_token (); if (looking_for_typename > 0) looking_for_typename--; |