http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59995
Bug ID: 59995 Summary: constexpr in non-static member function causes segmentation fault Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pipping at exherbo dot org This code << SNIP class A { int constexpr twice(int x) { return 2 * x; } int const a = twice(1); }; << SNAP Causes a segmentation fault for me (with -std=c++0x): << SNIP gcc-bug.cc:5:24: internal compiler error: Segmentation fault int const a = twice(1); ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. << SNAP