[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / pr32519.C
bloba010a5695b2a1f9b051b2cc4755909646753015b
1 // PR 32519
2 // { dg-do compile }
4 struct B
6 protected:
7   template <class T> void f (); // { dg-message "protected" }
8 };
10 struct D : public B
12   void g (B* b)
13   {
14     b->f<int> (); // { dg-error "context" }
15   }