OSDN Git Service

* parser.c (cp_parser_unqualified_id): Initialize type_decl.
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Feb 2005 04:39:41 +0000 (04:39 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Feb 2005 04:39:41 +0000 (04:39 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94795 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/parser.c

index 01d7f75..02b1c0b 100644 (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.
 
index f4e8ea2..453bc69 100644 (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);