annotate gcc/testsuite/g++.dg/template/koenig7.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // PR c++/13549
kono
parents:
diff changeset
2 // We need to do arg-dep lookup for g<T>(j) at instantiation time because
kono
parents:
diff changeset
3 // g<T> is dependent, even though (j) is not; at that point we can find
kono
parents:
diff changeset
4 // g(h).
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 template <typename T> int g(int);
kono
parents:
diff changeset
7 class h{};
kono
parents:
diff changeset
8 template <typename T> int l(){h j; return g<T>(j);}
kono
parents:
diff changeset
9 template <typename T> int g(const h&);
kono
parents:
diff changeset
10 class j{};
kono
parents:
diff changeset
11 int jj(){return l<j>();}