aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/nested1.C
blob: 90c6ecb3750d089cb077354939e6b2b9ef99da3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// Bug: g++ can't deal with function-local classes that talk about themselves.

void foo() {
  class Wrapper {
  public:
    void F (void * Wrapperptr)
    {
      Wrapper * wrapptr = (  Wrapper  *) Wrapperptr; // { dg-bogus "" }  
    }
  };
}