home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!mole-end!mat
- From: mat@uunet.uu.net!mole-end
- Subject: Re: Is It Illegal Construct ?
- Message-ID: <1992Jul27.082727.12177@uunet.uu.net!mole-end>
- Organization: :
- References: <1992Jul26.064922.22891@noose.ecn.purdue.edu>
- Distribution: na
- Date: Mon, 27 Jul 1992 08:27:27 GMT
- Lines: 28
-
- In article <1992Jul26.064922.22891@noose.ecn.purdue.edu>, luj@nationalrd.ecn.purdue.edu (John Lu) writes:
-
- > typedef int Pint;
- >
- > typedef struct {
- > union Ploc_pets {
- > struct Ploc_pet_r1 {
- > Pint unused;
- > } pet_r1;
- > struct Ploc_pet_r2 {
- > Pint unused;
- > } pet_r2;
- > struct Ploc_pet_r3 {
- > Pint unused;
- > } pet_r3;
- > } pets;
- > } Ploc_data;
-
- > "foo.C", line 4: internal <<AT&T C++ Translator 2.1.03 08/31/90>> error:
- > Ploc_pets is not a class name
-
- I don't know if it's a compiler fix or a language change, but it compiles
- fine on Comeau's port of C++ Release 3.0.
- --
- (This man's opinions are his own.)
- From mole-end Mark Terribile
-
- uunet!mole-end!mat, Somewhere in Matawan, NJ
-