]> 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:39:41 +0000 (04:39 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 10 Feb 2005 04:39:41 +0000 (04:39 +0000)
From-SVN: r94795

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

index 01d7f75dbd810f76f9dd036c24cad7df4c352d71..02b1c0bc1186a3de3b570eecc72a6714111b3872 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 f4e8ea28cc1669f42f3fd5ca301ea2fc8aa92006..453bc693665a536237b1bd9263949d78ccbfc7d4 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);