home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11651 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.1 KB  |  40 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!mole-end!mat
  3. From: mat@uunet.uu.net!mole-end
  4. Subject: Re: Is It Illegal Construct ?
  5. Message-ID: <1992Jul27.082727.12177@uunet.uu.net!mole-end>
  6. Organization: :
  7. References: <1992Jul26.064922.22891@noose.ecn.purdue.edu>
  8. Distribution: na
  9. Date: Mon, 27 Jul 1992 08:27:27 GMT
  10. Lines: 28
  11.  
  12. In article <1992Jul26.064922.22891@noose.ecn.purdue.edu>, luj@nationalrd.ecn.purdue.edu (John Lu) writes:
  13.  
  14. > typedef int Pint;
  15. > typedef struct {
  16. >     union Ploc_pets {
  17. >         struct Ploc_pet_r1 {
  18. >            Pint         unused;
  19. >         } pet_r1;
  20. >         struct Ploc_pet_r2 {
  21. >            Pint         unused;
  22. >         } pet_r2;
  23. >         struct Ploc_pet_r3 {
  24. >            Pint         unused;
  25. >         } pet_r3;
  26. >     } pets;
  27. > } Ploc_data;
  28.  
  29. > "foo.C", line 4: internal <<AT&T C++ Translator 2.1.03 08/31/90>> error:
  30. > Ploc_pets is not a class name
  31.  
  32. I don't know if it's a compiler fix or a language change, but it compiles
  33. fine on Comeau's port of C++ Release 3.0.
  34. -- 
  35.  (This man's opinions are his own.)
  36.  From mole-end                Mark Terribile
  37.  
  38.  uunet!mole-end!mat, Somewhere in Matawan, NJ
  39.