summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/member2.C
blob: 372c778a75607f071f6eda4beaccec2c45b1112b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/8660
// Bug: we were treating the definition of the non-template as a definition
// of the template, which broke.

struct BadgerBuf
{
  void ReadPod();
  template<class B>
  void ReadPod();
};

void BadgerBuf::ReadPod ()
  { ReadPod<int> (); }