Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash89.C
blob: d5c3a928323dd4d215f68600bc0f0ab7902fb52c [
file
] [
log
] [
blame
]
// PR c++/34397
template
<
typename
T
,
int
=
T
()[
0
]>
struct
A
// { dg-error "subscripted" }
{
typedef
A
<
T
>
B
;
};
A
<int>
a
;
// { dg-error "template argument 2 is invalid" }