1 // PR c++/92058 - constinit malfunction in static data member. 2 // { dg-do compile { target c++2a } } 3 4 struct B { BB5 B() {} 6 }; 7 8 struct A { 9 constinit static inline B b1{}; // { dg-error "does not have a constant initializer|call to non-.constexpr. function" } 10 }; 11 main()12int main() { 13 A a; 14 } 15