home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!batcomputer!ghost.dsi.unimi.it!univ-lyon1.fr!chx400!aragorn.unibe.ch!iacrs1!haedener
- From: haedener@iacrs1.unibe.ch (Konrad Haedener)
- Subject: Bug in xlc-1.2.0.13 (3.2.2+) ?
- Message-ID: <1992Nov23.155413.2189@aragorn.unibe.ch>
- Sender: haedener@iacrs1 (Konrad Haedener)
- Reply-To: haedener@iacrs1.unibe.ch
- Organization: University of Berne
- Date: Mon, 23 Nov 1992 15:54:13 GMT
- Lines: 30
-
- Consider the following legal C construct:
-
- struct my_test {
- struct demo *demos;
- int count;
- };
-
- where struct demo has not been declared when the compiler encounters the
- construct.
-
- According to the rules, "if a specifier with a tag but without a list appears
- when the tag is not declared, an incomplete type is specified. Objects with
- an incomplete structure or union type may be mentioned in contexts where their
- size is not needed, e.g. in declarations, for specifying a pointer, or for
- creating a typedef".
-
- I have evidence that xlc 1.2.0.13 fails to generate reliable code when using
- this C feature but under the given circumstances it's not easy to provide a
- 'simple test case'.
-
- I'd appreciate if anyone with similar experiences with xlc would confirm this;
- could we get some feedback from the development team? Are there related
- changes to xlc in later modifications of the compiler?
-
- Thanks,
- --
- Konrad Haedener Phone: +41 31 65 42 25
- Institute for Physical Chemistry FAX: +41 31 65 39 94
- University of Berne
- Switzerland haedener@iacrs1.unibe.ch
-