http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57764
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> --- The problem indeed seems to occur for static data members only and it occurs, if the referenced variable is usable in integral constant expressions, such as when declared as const int x = 42; or constexpr int x = 42; The problem exists for gcc 4.9.0 trunk as well.