]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/pr31434.C
call.c (struct conversion_info): Rename 'from_type' to 'from'.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr31434.C
1 // { dg-do compile { target c++11 } }
2 template<typename... T> int foo(const T&) // { dg-error "not expanded with|T" }
3 {
4 union { T t; }; // { dg-error "not expanded with|T" }
5 return t;
6 }
7
8 void bar()
9 {
10 foo(0); // { dg-error "no matching" }
11 }