summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/member6.C
blob: 7d66e7bdae613ac816cf696e53106274c31ad2c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/29105

struct Observer
{
  template < typename T > void observeComponent ();
};

template < typename T >
struct TagFilter : Observer
{
  TagFilter ()
  {
    observeComponent < int > ();
  }
};