diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-02-10 04:39:41 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-02-10 04:39:41 +0000 |
commit | e3754f9c239de0db248fd1c64379582b28c67cbc (patch) | |
tree | 1d43c41a69da832bc24ed9de6585b904344092b7 /gcc | |
parent | cbe24267f985f984d1d0a6d3472a990473a4d4c0 (diff) | |
download | gcc-e3754f9c239de0db248fd1c64379582b28c67cbc.zip gcc-e3754f9c239de0db248fd1c64379582b28c67cbc.tar.gz gcc-e3754f9c239de0db248fd1c64379582b28c67cbc.tar.bz2 |
* parser.c (cp_parser_unqualified_id): Initialize type_decl.
From-SVN: r94795
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cp/parser.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 01d7f75..02b1c0b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2005-02-09 Mark Mitchell <mark@codesourcery.com> + * parser.c (cp_parser_unqualified_id): Initialize type_decl. + PR c++/19787 * call.c (initialize_reference): Robustify. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index f4e8ea2..453bc69 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -3231,6 +3231,7 @@ cp_parser_unqualified_id (cp_parser* parser, /* If there was an explicit qualification (S::~T), first look in the scope given by the qualification (i.e., S). */ done = false; + type_decl = NULL_TREE; if (scope) { cp_parser_parse_tentatively (parser); |