Compiler crash

Petr Ovchenkov ptr@ParallelGraphics.COM
Thu Nov 2 04:28:00 GMT 2000


Crash of compiler:

$ cat > tst.cc
//-------------
template<char Tx> struct y  { };

double test(const y< 128> *){return 0.0;}

$ c++ -c tst.cc
tst.cc:4: Internal compiler error in , at tree.c:4350
   Please submit a full bug report.
   See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
$



c++ -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.8/2.97/specs
gcc version 2.97 20001002 (experimental)

 uname -a
SunOS ermine 5.8 Generic_108529-02 i86pc i386 i86pc

But the same is for 

c++ -v
Reading specs from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.01/2.96/specs
gcc version 2.96 20000807 (experimental)

uname -a
HP-UX spp1600 B.10.01 U 9000/735 65804 unlimited-user license

$ c++ -c tst.cc
tst.cc:4: Internal compiler error in tree_low_cst, at tree.c:4325
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.


So I don't think this is platform-specific.
(I know, that code is bit wrong: char type with value 128, if I change
it to 127, all work as expected).

Best regards,

     - Petr




More information about the Gcc-bugs mailing list