Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr31434.C
blob: afb719f17c89ddd27dd5f478153a527f37c64d85 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
template
<
typename
...
T
>
int
foo
(
const
T
&)
// { dg-error "not expanded with|T" }
{
union
{
T t
;
};
// { dg-error "not expanded with|T" }
return
t
;
}
void
bar
()
{
foo
(
0
);
// { dg-error "no matching" }
}