Debian Codegraph @

gcc/testsuite/g++.dg/template/dependent-tmpl1.C

raw
1 // PR c++/93085
2 // { dg-do compile { target c++11 } }
3
4 template<class T>
5 struct G {
6 template<T> static int foo(); // #1
7 template<int> static int foo(); // #2
8 int x = foo<42>(); // OK
9 };