This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Compiler crash
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Compiler crash
- From: Petr Ovchenkov <ptr at ParallelGraphics dot COM>
- Date: Thu, 2 Nov 2000 15:27:53 +0300 (MSK)
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