Daily bump.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / net4.C
blob4cf8e7a1387f54e6c9a8020ddf954ed5b2c94996
1 // Message-Id: <m0lLuUK-0000fRC@nix.appli.se>
2 // Date: Wed, 4 Mar 92 12:50 MET
3 // From: niklas@appli.se (Niklas Hallqvist)
4 // To: eichin@cygnus.com, tiemann@cygnus.com
5 // Cc: gcc2@cygnus.com
6 // Subject: nested type handling
7 // 
8 // The last couple of days I've been struggling with nested types in the
9 // C++ compiler.  Frankly, it's a mess!  Was it impossible to put the stuff
10 // into the parser instead of the lexer?  Well, anyway, to get the following
11 // code to compile:
12 // 
13 // struct O {
14 //   struct M {
15 //     struct I
16 //       {};
17 //   };
18 // };
19 // O::M::I s;
20 // 
21 // a patch enclosed below is needed.  I'm not sure if it causes any
22 // unanticipated side-effects, but it seem to work well for me.
24 // Build don't link:
26 struct O {
27   struct M {
28     struct I
29       {};
30   };
32 O::M::I s;