[Bug lto/51198] [c++0x] [4.7 Regression] ICE with -flto and non-static data member initializers
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 18 01:41:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51198
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-11-18
Target Milestone|--- |4.7.0
Ever Confirmed|0 |1
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-11-18 01:17:12 UTC ---
Something like:
Index: lto-streamer-out.c
===================================================================
--- lto-streamer-out.c (revision 181464)
+++ lto-streamer-out.c (working copy)
@@ -350,6 +350,9 @@ lto_write_tree (struct output_block *ob,
vnode))
initial = NULL;
}
+ /* NULLify the initial for field decls which show up in C++0x code. */
+ if (TREE_CODE (expr) == FIELD_DECL)
+ initial = NULL;
stream_write_tree (ob, initial, ref_p);
}
More information about the Gcc-bugs
mailing list