home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.g++.bug
- Path: sparky!uunet!usc!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!shekel.cs.columbia.edu!ezk
- From: ezk@shekel.cs.columbia.edu (Erez "HWank1" Zadok)
- Subject: internal compiler error in gcc/g++ 2.3.3
- Message-ID: <9212281846.AA22246@shekel.cs.columbia.edu>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Mon, 28 Dec 1992 18:46:32 GMT
- Approved: bug-g++@prep.ai.mit.edu
- Lines: 52
-
- This is the same problem that existed in 2.3.2 which I have reported.
- Provided are two short programs that cause an internal compiler error in g++
- 2.3.3. The problem goes away if I comment out the second instantiation of
- bar_t in test2.cc...
-
- Our configuration is a Sun-4/630 running SunOS 4.1.2. I've rebuilt gcc
- 2.3.3 and libg++ 2.3 with gcc-2.3.3 and had no problems during the build or
- installation.
-
- Erez Zadok.
- Central Research Facilities.
- Columbia University Department of Computer Science.
- ---
- "A wank's morning starts one jiffy | Arpa: ezk@cs.columbia.edu
- after midnight." | Usenet: ...!rutgers!columbia!cs!ezk
- -HebrewWank #1 (US meaning, not UK!) | Bitnet: erzus@cuvmb.BITNET
-
- ==============================================================================
- $ cat test1.cc
- #include <GetOpt.h>
- #include <String.h>
- class foo {public: foo () {}};
- class bar {public: bar (foo& dflt);};
- class baz: public bar {public: baz (): bar (foo ()) {}};
- $ g++ -v -c test1.cc
- Reading specs from /usr/local/gnu/lib/gcc-lib/sun4/2.3.3/specs
- gcc version 2.3.3
- /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
- GNU CPP version 2.3.3 (sparc)
- /usr/local/gnu/lib/gcc-lib/sun4/2.3.3/cc1plus /tmp/cca25754.i -quiet -dumpbase test1.cc -version -o /tmp/cca25754.s
- GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.3.3.
- test1.cc: In method `baz::baz ()':
- test1.cc:5: Internal compiler error.
- test1.cc:5: Please report this to `bug-g++@prep.ai.mit.edu'.
- $ cat test2.cc
- #include <GetOpt.h>
- class foo_t {public: foo_t() {}};
- class bar_t {public: bar_t(foo_t &s=foo_t()) {}};
- int main() {bar_t my_bar; bar_t your_bar;}
- $ g++ -v -c test2.cc
- Reading specs from /usr/local/gnu/lib/gcc-lib/sun4/2.3.3/specs
- gcc version 2.3.3
- /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
- GNU CPP version 2.3.3 (sparc)
- /usr/local/gnu/lib/gcc-lib/sun4/2.3.3/cc1plus /tmp/cca25770.i -quiet -dumpbase test2.cc -version -o /tmp/cca25770.s
- GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.3.3.
- test2.cc: In function `int main ()':
- test2.cc:4: Internal compiler error.
- test2.cc:4: Please report this to `bug-g++@prep.ai.mit.edu'.
- ==============================================================================
-
-
-