]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* parser.c (cp_parser_unqualified_id): Initialize type_decl.
authorMark Mitchell <mark@codesourcery.com>
Thu, 10 Feb 2005 04:40:32 +0000 (04:40 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 10 Feb 2005 04:40:32 +0000 (04:40 +0000)
From-SVN: r94796

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

index 4aeb82568d9b2db27d1d6e881d4ad671038e9c3e..88c7a3623dd4690ba7ba3e2cb19fd3c6a07aace2 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 fbd156a057345792445317142b5b97625166e818..8b1075f52ffa4e1bfd2250b3ce9b00c7586fd1ae 100644 (file)
@@ -2909,6 +2909,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);