Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/overload11.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/39413 // We don't need to instantiate Wrapper<int> to check the // foo(const Thingy&) overload. template <class T> struct Incomplete; template <typename T> class Wrapper { Incomplete<T> i; }; template <typename T> struct Thingy { Thingy(); Thingy(const Wrapper<T>& v); template <typename X> void foo(const Thingy<X>&); void foo(const Thingy&); }; int main() { Thingy<int> ap1; Thingy<float> bp1; ap1.foo(bp1); }