Debian Codegraph @

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

raw
1 // PR 32519
2 // { dg-do compile }
3
4 struct B
5 {
6 protected:
7 template <class T> void f (); // { dg-message "protected" }
8 };
9
10 struct D : public B
11 {
12 void g (B* b)
13 {
14 b->f<int> (); // { dg-error "context" }
15 }
16 };