* parser.c (cp_parser_unqualified_id): Initialize type_decl.

From-SVN: r94795
This commit is contained in:
Mark Mitchell 2005-02-10 04:39:41 +00:00 committed by Mark Mitchell
parent cbe24267f9
commit e3754f9c23
2 changed files with 3 additions and 0 deletions

View File

@ -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.

View File

@ -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);