home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / g / bug / 1859 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.3 KB  |  44 lines

  1. Newsgroups: gnu.g++.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!whisker.lotus.IE!jkh
  3. From: jkh@whisker.lotus.IE (Jordan K. Hubbard)
  4. Subject: Crash bug with 2.3.1
  5. Message-ID: <JKH.92Nov22170157@whisker.lotus.ie>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Lotus Development Ireland
  8. Distribution: gnu
  9. Date: Sun, 22 Nov 1992 17:01:57 GMT
  10. Approved: bug-g++@prep.ai.mit.edu
  11. Lines: 31
  12.  
  13. The following C++ program will crash gcc 2.3.1:
  14.  
  15. class fred {
  16.     int i;
  17. };
  18.  
  19. main()
  20. {
  21.     fred *fp;
  22.  
  23.     fp = new fred[100]();
  24. }
  25.  
  26. Removing the empty constructor argument list from the above will eliminate
  27. the crash.  I.E.
  28.  
  29.     fp = new fred[100];
  30.  
  31. Crash details:
  32.  
  33. jkh@whisker-> g++ -v crash.cc -o crash
  34. Reading specs from /usr/gnu/lib/gcc-lib/i386--bsd/2.3.1/specs
  35. gcc version 2.3.1
  36.  /usr/gnu/lib/gcc-lib/i386--bsd/2.3.1/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dunix -Di386 -D__386BSD__ -D__unix__ -D__i386__ -D__386BSD__ -D__unix -D__i386 -D__386BSD__ crash.cc /var/tmp/cc001269.i
  37. GNU CPP version 2.3.1 (80386, BSD syntax)
  38.  /usr/gnu/lib/gcc-lib/i386--bsd/2.3.1/cc1plus /var/tmp/cc001269.i -quiet -dumpbase crash.cc -version -o /var/tmp/cc001269.s
  39. GNU C++ version 2.3.1 (80386, BSD syntax) compiled by GNU C version 2.3.1.
  40. crash.cc: In function `int  main ()':
  41. crash.cc:9: Internal compiler error 40.
  42. crash.cc:9: Please report this to `bug-g++@prep.ai.mit.edu'.
  43.  
  44.