Internal error, RHv6.0 i386 gcc v2.95.2

Carl Nygard
Thu Dec 16 05:40:00 GMT 1999

Having troubles compiling the smart ptr library from KSVH software
(Kevin S. Van Horn).  See attached preprocessor output.  Also note, gcc
can't handle something like:

ctassert<true || false> foo;

instead, it must be:

ctassert<(true || false)> foo;

I suspect this is a deficiency in the compiler, since the first code
snippet  compiles cleanly on HP aCC and DEC cxx (and I think MSVC++, not


[carl@czech services]$ gcc -v --save-temps -o testsmart testsmart.cxx
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cpp -lang-c++ -v
-D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__
-Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__
-D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386)
-Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686
-D__i686__ -D__pentiumpro -D__pentiumpro__ testsmart.cxx testsmart.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:


End of search list.
The following default directories have been omitted from the search
End of omitted list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cc1plus testsmart.ii
-quiet -dumpbase -version -o testsmart.s
GNU C++ version 2.95.2 19991024 (release) (i686-pc-linux-gnu) compiled
by GNU C version 2.95.1 19990816 (release).
In file included from testsmart.cxx:4:
smart_ptr.hxx:133: Internal compiler error.
smart_ptr.hxx:133: Please submit a full bug report.
smart_ptr.hxx:133: See
<URL: > for

-------------- next part --------------
A non-text attachment was scrubbed...
Name: testsmart.ii.gz
Type: application/x-gzip
Size: 27998 bytes
Desc: not available
URL: <>

More information about the Gcc-bugs mailing list