home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gcc / bug / 1983 < prev    next >
Encoding:
Text File  |  1992-07-25  |  913 b   |  42 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!bass.ai.mit.EDU!paisley
  3. From: paisley@bass.ai.mit.EDU (Beau Paisley)
  4. Subject: bug in gcc2.2.2, please acknowledge.
  5. Message-ID: <9207250016.AA02921@bass.noname>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Sat, 25 Jul 1992 00:16:09 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 29
  12.  
  13. We have sent this bug message 3 times.  Please
  14. acknowledge, and suggest a work-around.
  15.  
  16. /* When you execute this program it generates an illegal instruction message */
  17. /* No syntax error is given for the illegal allocation syntax */
  18.  
  19. extern "C" void exit( int );
  20.  
  21. int test(int j)
  22. {
  23.     return( 0 );
  24. }
  25.  
  26. main( )
  27. {
  28.     int n=4;
  29.     double x[n];    /* This seems to be the statement that gcc goofs up */
  30.             /* The c++ version of gcc messes it up also */
  31.     int i;
  32.     i= test(0);
  33.  
  34.     exit(0);
  35. }
  36.  
  37. Beau Paisley
  38. apl/uw
  39. 206-367-0599
  40.  
  41.  
  42.