Backport:
2004-04-01 Mark Mitchell <mark@codesourcery.com>
PR c++/14810
* decl.c (maybe_push_cleanup_level): Robustify.
From-SVN: r81464
+2004-05-04 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ Backport:
+ 2004-04-01 Mark Mitchell <mark@codesourcery.com>
+ PR c++/14810
+ * decl.c (maybe_push_cleanup_level): Robustify.
+
2004-05-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
Backport from gcc-3_4-branch
maybe_push_cleanup_level (type)
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)
{
keep_next_level (2);