home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / gcc / bug / 3122 < prev    next >
Encoding:
Text File  |  1993-01-06  |  2.5 KB  |  87 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!brendan
  3. From: brendan@cygnus.com (Brendan Kehoe)
  4. Subject: [jbg@qualcomm.com: Core dump now internal error]
  5. Message-ID: <9301060312.AA27401@cygnus.com>
  6. Sender: gnulists@ai.mit.edu
  7. Reply-To: brendan@cygnus.com (Brendan Kehoe)
  8. Organization: GNUs Not Usenet
  9. Distribution: gnu
  10. Date: Wed, 6 Jan 1993 03:12:46 GMT
  11. Approved: bug-gcc@prep.ai.mit.edu
  12. Lines: 73
  13.  
  14. I think this is a back-end problem.  `-O -g -funroll-loops' is what
  15. triggers it.
  16.  
  17. ------- Start of forwarded message -------
  18. From: Jeff Gehlhaar <jbg@qualcomm.com>
  19. Subject: Core dump now internal error
  20. To: bug-g++@prep.ai.mit.edu
  21. Date: Mon, 4 Jan 1993 09:19:11 -0700
  22. X-Sender: jbg@wizard.qualcomm.com
  23.  
  24. // This program used to cause G++ to dump core.  It now causes an internal
  25. // compiler error.
  26.  
  27. // All of this, both code and options, seem to be necessary to tickle
  28. // the bug.  Don't ask _me_ why; I don't see how they are related....
  29.  
  30. // The result of ``g++ -v -c -O -g -funroll-loops bug006.cc'' is attached below.
  31.  
  32. // -- Greg
  33.  
  34. #include <iostream.h>
  35. #define SHOW(x)    do { cout << x << endl; } while (0)
  36.  
  37. class List
  38. {
  39. public:
  40.         List(void) { list = 0; }
  41.         class List *list;
  42. };
  43.  
  44. class Class
  45. {
  46. public:
  47.         Class(char *param);
  48.         List queue;
  49. };
  50.  
  51. Class::Class(char *param)
  52. {
  53.         SHOW("Display some text");
  54. }
  55.  
  56. /* Compiler output follows:
  57. Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/specs
  58. gcc version 2.3.3
  59.  /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/cpp -lang-c++ -v -undef
  60. - -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__
  61. - -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix -D__OPTIMIZE__ -g bug006.cc
  62. /usr/tmp/cca29841.i
  63. GNU CPP version 2.3.3 (sparc)
  64.  /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/cc1plus
  65. /usr/tmp/cca29841.i -quiet -dumpbase bug006.cc -g -O -version
  66. - -funroll-loops -o /usr/tmp/cca29841.s
  67. GNU C++ version 2.3.3 (sparc) compiled by CC.
  68. bug006.cc: In method `Class::Class (char *)':
  69. bug006.cc:31: Internal compiler error.
  70. bug006.cc:31: Please report this to `bug-g++@prep.ai.mit.edu'.
  71. Compiler output above */
  72.  
  73.  
  74. ======================================================
  75. Jeff Gehlhaar           Qualcomm Inc,  
  76. jbg@qualcomm.com        San Diego, CA, USA
  77. (619) 597-5241          "The Elegant Solution...."
  78. ======================================================
  79.  
  80.  
  81. ------- End of forwarded message -------
  82.  
  83. --
  84. Brendan Kehoe                                               brendan@cygnus.com
  85. Cygnus Support, Mountain View, CA                              +1 415 903 1400
  86.  
  87.