summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/warning3.C
blob: ef4a6eea9ee71ba737530ed620b6d27bfef70f21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// { dg-options "-Wshadow" }
// Bug: overloading of 'A' for template causes bogus shadowing warnings.

template<class T> 
class A
{
 public:
   virtual ~A() {}
};

template class A<int>;