[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / virtual4.C
bloba2c7420b402e7ec6c648668e88ebbd16ab42058c
1 // PR c++/56243
3 struct A
5   virtual int String ();
6 };
8 struct F: A { };
10 struct G
12   F value;
15 struct D
17   template <int>
18   void Verify()
19   {
20     G x;
21     F& name = x.value;
22     name.String();
23   }
26 int main()
28   D d;
29   d.Verify<42>();