c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / template / lookup17.C
blobb8571b9f1eb2dfb96d91c16820eb83c202f9349a
1 // PR c++/91706
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options -g }
5 template <bool> struct A;
7 struct B { static constexpr bool g = false; };
9 struct C {
10   template <typename> static B c ();
13 template <class T> struct D : C {
14   using c = decltype (c<T>());
15   using E = A<c::g>;
18 D<int> g;