http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57654
Bug ID: 57654 Summary: [c++11][constexpr] static class member reference-to-a-reference will not compile Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pebbles at riseup dot net This simple example fails to compile with g++ development sources. =================================================== int i; constexpr int & iref = i; constexpr int & irefref = iref; // works class A { static constexpr int & irefref = iref; // ^ // error: field initializer is not constant }; ==================================================== This is similar but not the same as bug 50298 .