PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / overload11.C
blobd7b0a7c9f1c323523ed17908860cb784d3e13a38
1 // PR c++/39413
2 // We don't need to instantiate Wrapper<int> to check the
3 // foo(const Thingy&) overload.
5 template <class T> struct Incomplete;
7 template <typename T> class Wrapper
9   Incomplete<T> i;
12 template <typename T> struct Thingy
14   Thingy();
15   Thingy(const Wrapper<T>& v);
17   template <typename X> void foo(const Thingy<X>&);
18   void foo(const Thingy&);
21 int main()
23     Thingy<int> ap1;
24     Thingy<float> bp1;
26     ap1.foo(bp1);