summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/shadow2.C
blob: 11d6a9b071891a5a9b857610360acd632676df8d (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// Origin: Jason Merrill <jason@cygnus.com>

template <class T> struct A { // { dg-error "" } shadowed parameter
  struct B {
    void T(); // { dg-error "" } shadows template parameter
  };
};
A<int> a;