Commit bb8b4ed6 by Mark Mitchell Committed by Mark Mitchell

re PR c++/14810 (tree check failures with invalid code involving templates)

	PR c++/14810
	* name-lookup.c (maybe_push_cleanup_level): Robustify.

From-SVN: r80315
parent 2b6b5c35
2004-04-01 Mark Mitchell <mark@codesourcery.com>
PR c++/14810
* name-lookup.c (maybe_push_cleanup_level): Robustify.
2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* class.c (VTT_TOP_LEVEL_P): Use unsigned_flag directly. * class.c (VTT_TOP_LEVEL_P): Use unsigned_flag directly.
......
...@@ -1407,7 +1407,8 @@ innermost_nonclass_level (void) ...@@ -1407,7 +1407,8 @@ innermost_nonclass_level (void)
void void
maybe_push_cleanup_level (tree type) maybe_push_cleanup_level (tree type)
{ {
if (TYPE_HAS_NONTRIVIAL_DESTRUCTOR (type) if (type != error_mark_node
&& TYPE_HAS_NONTRIVIAL_DESTRUCTOR (type)
&& current_binding_level->more_cleanups_ok == 0) && current_binding_level->more_cleanups_ok == 0)
{ {
begin_scope (sk_cleanup, NULL); begin_scope (sk_cleanup, NULL);
......
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