summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/pr32519.C
blob: e93c7b4761d7b3c253f8597b17041fe2855ba4eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR 32519
// { dg-do compile }

struct B
{
protected:
  template <class T> void f (); // { dg-error "protected" }
};

struct D : public B
{
  void g (B* b)
  {
    b->f<int> (); // { dg-error "context" }
  }
};