http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57416
Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler@googlemail. | |com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> --- In the gcc 4.9.0 trunk I see no ICE, only a compiler error. Of-course ICEs need to be fixed, but I think the example code is notvalid C++11, because the initialization of the member of the local classes Data odr-use the function parameter p_parent_data according to 9.8 p1: "[..] Declarations in a local class shall not odr-use (3.2) a variable with automatic storage duration from an enclosing scope."