]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/variadic122.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic122.C
1 // PR c++/52043
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wreturn-type" }
4
5 template < class T > struct Container
6 {
7 T f ();
8 };
9
10 template < class T >
11 T deref (T)
12 {} // { dg-bogus "no return" }
13
14 template < class T, class ... Args >
15 auto deref (T u, int, Args ... args)->decltype (deref (u.f (), args ...))
16 {} // { dg-warning "no return" }
17
18 void
19 foo ()
20 {
21 Container < Container < int > > v;
22 deref (v, 2);
23 }
This page took 0.037818 seconds and 5 git commands to generate.