home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!mips!news.cs.indiana.edu!noose.ecn.purdue.edu!nationalrd.ecn.purdue.edu!luj
- From: luj@nationalrd.ecn.purdue.edu (John Lu)
- Subject: Is It Illegal Construct ?
- Message-ID: <1992Jul26.064922.22891@noose.ecn.purdue.edu>
- Sender: news@noose.ecn.purdue.edu (USENET news)
- Organization: Purdue University Engineering Computer Network
- Distribution: na
- Date: Sun, 26 Jul 1992 06:49:22 GMT
- Lines: 31
-
-
- ---------------------
- luj@mulberry [562]$ cat foo.C
- 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;
- luj@mulberry [563]$ CC -c foo.C
- "foo.C", line 4: internal <<AT&T C++ Translator 2.1.03 08/31/90>> error:
- Ploc_pets is not a class name
- Compilation failed
- errno: 1
- ---------------------
-
- Where does the ARM say that above construct is illegal, or is this
- a compiler bug ?
-
- --
- -- John Lu
- luj@ecn.purdue.edu
-