------- Comment #3 from pinskia at gcc dot gnu dot org 2007-06-12 18:16 ------- The patch which fixes the problem: Index: ipa-reference.c =================================================================== --- ipa-reference.c (revision 125637) +++ ipa-reference.c (working copy) @@ -269,6 +269,10 @@ if (DECL_EXTERNAL (t) || TREE_PUBLIC (t)) return false;
+ /* We cannot touch decl's whos types need constructing. */ + if (TYPE_NEEDS_CONSTRUCTING (TREE_TYPE (t))) + return false; + /* This is a variable we care about. Check if we have seen it before, and if not add it the set of variables we care about. */ if (!bitmap_bit_p (all_module_statics, DECL_UID (t))) -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32304