[Bug middle-end/50741] [4.7 Regression] remove_unused_locals causes seg fault
matz at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 17 15:29:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50741
Michael Matz <matz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #5 from Michael Matz <matz at gcc dot gnu.org> 2011-10-17 15:28:47 UTC ---
And of course, it's the ctor cloning:
DECL_CONTEXT of _rL_53 is <function_decl 0x7ffff53db000 A>,
but current_function_decl is <function_decl 0x7ffff53db200 __base_ctor>.
So it's similar to PR50640, in that the initializers of statics declared
in different functions aren't walked. That's reasonable assuming that
such initializers are walked when the declaring function is handled (which
is reasonable to expect, as otherwise the initializer couldn't have been
known). But here the cloning and rewriting gets into our way.
More information about the Gcc-bugs
mailing list