Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/lookup/two-stage4.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// Contributed by Douglas Gregor <doug.gregor@gmail.com> template<class T> struct wrap {}; template<typename T> bool operator==(wrap<T>, wrap<T>); template<typename T> void g(T, wrap<wrap<int> > x) { bool b = x == x; // { dg-bogus "" } } template<typename T> void operator==(wrap<wrap<T> >, wrap<wrap<T> >); void h() { wrap<wrap<int> > x; g(17, x); }