Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/decltype35.C

raw
1 // PR c++/50870
2 // { dg-do compile { target c++11 } }
3
4 template <class V>
5 struct impl
6 {
7 template <class T> static T create();
8 };
9
10 template <class T, class U, class V, class
11 = decltype(impl<V>::template create<T>()
12 -> impl<V>::template create<U>())>
13 struct tester { };
14
15 tester<impl<float>*, int, float> ti;