https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84582
Bug ID: 84582 Summary: [8 Regression] Rejected valid C++ code since r257961 Product: gcc Version: unknown Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: mpolacek at gcc dot gnu.org Target Milestone: --- It's isolated from Firefox, hope it's a valid code: $ cat RegExp.ii template <class> class a { static const long b = 0; static const unsigned c = (b); }; $ g++ RegExp.ii RegExp.ii:3:31: error: non-constant in-class initialization invalid for static member ‘a< <template-parameter-1-1> >::c’ static const unsigned c = (b); ^ RegExp.ii:3:31: note: (an out of class initialization is required)