Debian Codegraph @

gcc/testsuite/g++.dg/template/lookup17.C

raw
1 // PR c++/91706
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options -g }
4
5 template <bool> struct A;
6
7 struct B { static constexpr bool g = false; };
8
9 struct C {
10 template <typename> static B c ();
11 };
12
13 template <class T> struct D : C {
14 using c = decltype (c<T>());
15 using E = A<c::g>;
16 };
17
18 D<int> g;