Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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()" }
}