home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / g / bug / 2087 < prev    next >
Encoding:
Text File  |  1992-12-29  |  2.9 KB  |  65 lines

  1. Newsgroups: gnu.g++.bug
  2. Path: sparky!uunet!usc!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!shekel.cs.columbia.edu!ezk
  3. From: ezk@shekel.cs.columbia.edu (Erez "HWank1" Zadok)
  4. Subject: internal compiler error in gcc/g++ 2.3.3
  5. Message-ID: <9212281846.AA22246@shekel.cs.columbia.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 28 Dec 1992 18:46:32 GMT
  10. Approved: bug-g++@prep.ai.mit.edu
  11. Lines: 52
  12.  
  13. This is the same problem that existed in 2.3.2 which I have reported.
  14. Provided are two short programs that cause an internal compiler error in g++
  15. 2.3.3.  The problem goes away if I comment out the second instantiation of
  16. bar_t in test2.cc...
  17.  
  18. Our configuration is a Sun-4/630 running SunOS 4.1.2.  I've rebuilt gcc
  19. 2.3.3 and libg++ 2.3 with gcc-2.3.3 and had no problems during the build or
  20. installation.
  21.  
  22. Erez Zadok.
  23. Central Research Facilities.
  24. Columbia University Department of Computer Science.
  25. ---
  26. "A wank's morning starts one jiffy    | Arpa:   ezk@cs.columbia.edu
  27.  after midnight."                     | Usenet: ...!rutgers!columbia!cs!ezk
  28.  -HebrewWank #1 (US meaning, not UK!) | Bitnet: erzus@cuvmb.BITNET
  29.  
  30. ==============================================================================
  31. $ cat test1.cc
  32. #include <GetOpt.h>
  33. #include <String.h>
  34. class foo {public: foo () {}};
  35. class bar {public: bar (foo& dflt);};
  36. class baz: public bar {public: baz (): bar (foo ()) {}};
  37. $ g++ -v -c test1.cc
  38. Reading specs from /usr/local/gnu/lib/gcc-lib/sun4/2.3.3/specs
  39. gcc version 2.3.3
  40.  /usr/local/gnu/lib/gcc-lib/sun4/2.3.3/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix test1.cc /tmp/cca25754.i
  41. GNU CPP version 2.3.3 (sparc)
  42.  /usr/local/gnu/lib/gcc-lib/sun4/2.3.3/cc1plus /tmp/cca25754.i -quiet -dumpbase test1.cc -version -o /tmp/cca25754.s
  43. GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.3.3.
  44. test1.cc: In method `baz::baz ()':
  45. test1.cc:5: Internal compiler error.
  46. test1.cc:5: Please report this to `bug-g++@prep.ai.mit.edu'.
  47. $ cat test2.cc
  48. #include <GetOpt.h>
  49. class foo_t {public: foo_t() {}};
  50. class bar_t {public: bar_t(foo_t &s=foo_t()) {}};
  51. int main() {bar_t my_bar; bar_t your_bar;}
  52. $ g++ -v -c test2.cc
  53. Reading specs from /usr/local/gnu/lib/gcc-lib/sun4/2.3.3/specs
  54. gcc version 2.3.3
  55.  /usr/local/gnu/lib/gcc-lib/sun4/2.3.3/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix test2.cc /tmp/cca25770.i
  56. GNU CPP version 2.3.3 (sparc)
  57.  /usr/local/gnu/lib/gcc-lib/sun4/2.3.3/cc1plus /tmp/cca25770.i -quiet -dumpbase test2.cc -version -o /tmp/cca25770.s
  58. GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.3.3.
  59. test2.cc: In function `int  main ()':
  60. test2.cc:4: Internal compiler error.
  61. test2.cc:4: Please report this to `bug-g++@prep.ai.mit.edu'.
  62. ==============================================================================
  63.  
  64.  
  65.