summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.gb/scope06.C
blob: cbcc4fde125b1380877cf3d39b7170d9698d8e93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// { dg-prune-output "non-static data member initializers" }
// GROUPS passed gb scope
struct C {
  struct D {
    int x;
    void foo ();
  };
      const int Ok = 0; // { dg-error "" } initialization forbidden
};

void C::D::foo ()
{
  // { dg-prune-output "from this location" }
  x = Ok;
}