Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/stabilize-5116.115.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash89.C
blob: f4cdaf9d9bd5dc47a0e4e279928cfb4223cc646f [
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 "declaration" }
// { dg-prune-output "template argument 2 is invalid" }