Debian Codegraph @

gcc/testsuite/g++.dg/init/static5.C

raw
1 // PR c++/70156
2 // { dg-do compile { target c++11 } }
3
4 template <int> struct A { int i; };
5 struct B { int i; };
6 struct C {
7 static const A<0> a = { 0 }; // { dg-error ".constexpr. needed for in-class initialization of static data member" }
8 static const B b = { 1 }; // { dg-error ".constexpr. needed for in-class initialization of static data member" }
9 };