Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
111 | 1 // PR c++/13549 |
2 // We need to do arg-dep lookup for g<T>(j) at instantiation time because | |
3 // g<T> is dependent, even though (j) is not; at that point we can find | |
4 // g(h). | |
5 | |
6 template <typename T> int g(int); | |
7 class h{}; | |
8 template <typename T> int l(){h j; return g<T>(j);} | |
9 template <typename T> int g(const h&); | |
10 class j{}; | |
11 int jj(){return l<j>();} |