Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash41.C
blob: 16e7028a6688f48dd685e436c0b62d19a3f55336 [
file
] [
log
] [
blame
]
// PR c++/22464
template
<
typename
T
>
void
do_something
(
const
T
*
A
)
// { dg-message "declared" }
{
struct
helper_t
{
helper_t
()
{
A
[
0
];
// { dg-error "use" }
}
}
helper
;
}
void
sub1
()
{
double
A
[
7
];
do_something
(
A
);
}