Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
variadic1.C
blob: 7e3db3143284df2b7da4253f2c88dd5701f18099 [
file
] [
log
] [
blame
]
// PR c++/55241
// { dg-do compile { target c++11 } }
template
<
int
N
>
struct
B
{
};
template
<
typename
...
T
>
struct
A
{
B
<
sizeof
...(
T
)>
f
();
// { dg-message "sizeof\\.\\.\\." }
B
<
42
>
f
();
// { dg-error "cannot be overloaded" }
};