Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
nontype-auto6.C
blob: b40438ce197a4fc20cc1adc10766f0d82c1b2f0a [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
template
<
int
N
>
struct
A
;
template
<
typename
T
,
T N
>
int
foo
(
A
<
N
>
*)
=
delete
;
void
foo
(
void
*);
void
bar
(
A
<
0
>
*
p
)
{
foo
(
p
);
// { dg-error "" "" { target c++17 } }
}