Commit 4543ee47 by Zdenek Dvorak Committed by Zdenek Dvorak

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

From-SVN: r76264
parent c930d8a5
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> 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
* Make-lang.in: Replace $(docdir) with doc. * Make-lang.in: Replace $(docdir) with doc.
......
...@@ -11699,8 +11699,12 @@ cp_parser_class_specifier (cp_parser* parser) ...@@ -11699,8 +11699,12 @@ cp_parser_class_specifier (cp_parser* parser)
/* Figure out which function we need to process. */ /* Figure out which function we need to process. */
fn = TREE_VALUE (queue_entry); fn = TREE_VALUE (queue_entry);
/* A hack to prevent garbage collection. */
function_depth++;
/* Parse the function. */ /* Parse the function. */
cp_parser_late_parsing_for_member (parser, fn); cp_parser_late_parsing_for_member (parser, fn);
function_depth--;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment