Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-template2.C

raw
1 // { dg-do compile { target c++11 } }
2
3 template <class T> struct A
4 {
5 T t;
6 constexpr A() { } // { dg-error "::t" "" { target c++17_down } }
7 };
8
9 int main()
10 {
11 constexpr A<int> a; // { dg-error "A()" }
12 }