* parser.c (cp_parser_class_specifier): Prevent garbage collection.

From-SVN: r76264
This commit is contained in:
Zdenek Dvorak 2004-01-21 08:41:49 +01:00 committed by Zdenek Dvorak
parent c930d8a53c
commit 4543ee4782
2 changed files with 8 additions and 0 deletions

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

View 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--;
}
}