[gnu.g++.bug] struct inside extern bug

tiemann@YAHI.STANFORD.EDU (Michael Tiemann) (07/28/89)

   Date: Wed, 26 Jul 89 17:41:58 EDT 
   From: David.Detlefs@f.gp.cs.cmu.edu

   Gurus,

   The following program

   --------------------------------------------------
   extern "C" {
     struct foo {
       int i;
     };
   }

   class bar {
     foo* f;
   };
   --------------------------------------------------

   produces the following message:

   bug3.c:8: parse error before `*'

   using g++-1.35.0

   I guess there are a few wrinkles in the "extern" stuff to be ironed
   out.

   Hope this helps...

   Dave

Yeah.  The wrinkle is that I don't throw C struct names into the
identifier name space WHEN THEY APPEAR IN `extern "C"'.  That is,
things wrappen in `extern "C"' behave like they are supposed to in C.

Michael