Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/var-templ68a.C

raw
1 // PR c++/96330
2 // { dg-do compile { target c++14 } }
3
4 template <class>
5 struct foo_t {
6 template <class T> static constexpr bool bar = true;
7 };
8 template <class T> constexpr foo_t<T> foo{};
9
10 template <class T>
11 void f() {
12 int x = foo<T>.template bar<T>;
13 int y = foo_t<T>::template bar<T>;
14 }
15
16 template void f<int>();