Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-template2.C
blob: 71eb559a24c5607df63f2df7bd578ad7bb3c247f [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
template
<
class
T
>
struct
A
{
T t
;
constexpr
A
()
{
}
// { dg-error "::t" "" { target c++17_down } }
};
int
main
()
{
constexpr
A
<int>
a
;
// { dg-error "A()" }
}