aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/parser.c1
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);