Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }
};