home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aix / 11847 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.6 KB  |  42 lines

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