]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* parser.c (cp_parser_class_specifier): Prevent garbage collection.
authorZdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
Wed, 21 Jan 2004 07:41:49 +0000 (08:41 +0100)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Wed, 21 Jan 2004 07:41:49 +0000 (07:41 +0000)
From-SVN: r76264

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

index bfae507284bb2bbcfb23c5bfa3111f7458575a19..2587cf30b017de6475d591e40b62b0995a1c9e27 100644 (file)
@@ -1,3 +1,7 @@
+2004-01-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+
+       * parser.c (cp_parser_class_specifier): Prevent garbage collection.
+
 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
 
        * Make-lang.in: Replace $(docdir) with doc.
index 284afc68c7da41c916a216b6c97281c9a3843075..4fde7b64a514c2bab9956795548d9230a5145f0a 100644 (file)
@@ -11699,8 +11699,12 @@ cp_parser_class_specifier (cp_parser* parser)
          /* Figure out which function we need to process.  */
          fn = TREE_VALUE (queue_entry);
 
+         /* A hack to prevent garbage collection.  */
+         function_depth++;
+
          /* Parse the function.  */
          cp_parser_late_parsing_for_member (parser, fn);
+         function_depth--;
        }
 
     }