https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64954
Bug ID: 64954 Summary: GCC incorrectly rejects constexpr variable initialization. Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ytj000 at gmail dot com struct A {}; int main() { A a; constexpr A b = a; } Compiles with clang++ 3.7.0 (trunk 228104). FYI http://llvm.org/bugs/show_bug.cgi?id=22474