https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70156

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot 
gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Since r254461:

70156.C:4:23: error: ‘constexpr’ needed for in-class initialization of static
data member ‘const A<0> C::a’ of non-integral type [-fpermissive]
    4 |     static const A<0> a = { 0 };
      |                       ^
70156.C:5:20: error: ‘constexpr’ needed for in-class initialization of static
data member ‘const B C::b’ of non-integral type [-fpermissive]
    5 |     static const B b = { 1 };
      |                    ^

which is also what clang++ says.  I'll add the test.

Reply via email to