1 // { dg-do assemble  }
2 // GROUPS passed nest
3 // nest file
4 // From: Neal Young <ney@princeton.edu>
5 // Date:     Mon, 11 Oct 93 17:03:59 EDT
6 // Subject:  g++ 2.4.5 bug report: local class decl can't access local static var
7 // Message-ID: <9310112103.AA06326@cs>
8 
f()9 void f()
10 {
11   static int s;
12 
13   struct local {
14     int j() { return s; }       // should be okay, see 1991 ref. man. r.9.8
15   };
16 }
17 
main()18 int main()
19 {
20 }
21