This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE at an apparently unrelated place
- To: egcs-bugs at cygnus dot com
- Subject: ICE at an apparently unrelated place
- From: Wolfgang Bangerth - home account <wolf at gaia dot iwr dot uni-heidelberg dot de>
- Date: Wed, 1 Jul 1998 02:59:28 +0200 (MET DST)
- Reply-To: Wolfgang Bangerth - home account <wolf at gaia dot iwr dot uni-heidelberg dot de>
Hi again,
another small problem: in the following code snippet, the compiler should
warn about the unknown class X and X::set(), but dies if previously <set>
was included. If the include is omitted, the error message appears as
expected. It seems as if egcs-ss-19980621 gets out of tune somewhere in
<set> and dies at the next possibility.
Apart from these things: great job! The free compilers are evolving faster
than ever and this benefits everyone -- thanks.
Regards
Wolfgang
-----------------------------t2.cc-------------------------------------
#include <set>
class X;
void foo (X &x) {
x.set ();
};
----------------------------t2.cc--------------------------------------
----------------------------Output-------------------------------------
wolf@sol:/home/wolf/program/grid/deal.II/source/grid >/home/wolf/bin/gcc/bin/c++ -v -c t2.cc
Reading specs from
/home/wolf/bin/egcs-19980621/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.91.42/specs
gcc version egcs-2.91.42 19980621 (gcc2 ss-980502 experimental)
/home/wolf/bin/egcs-19980621/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.91.42/cpp
-lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__
-D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Di386
-Asystem(unix) -Acpu(i386) -Amachine(i386) -D__pentium__ -D__i586__
-D__i386__ -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__pentium__
-D__i586__ t2.cc /tmp/cca24737.ii
GNU CPP version egcs-2.91.42 19980621 (gcc2 ss-980502 experimental) (i386
Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/home/wolf/bin/egcs-19980621/include/g++
/usr/local/include
/home/wolf/bin/egcs-19980621/i586-pc-linux-gnulibc1/include
/home/wolf/bin/egcs-19980621/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.91.42/include
/usr/include
End of search list.
/home/wolf/bin/egcs-19980621/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.91.42/cc1plus
/tmp/cca24737.ii -quiet -dumpbase t2.cc -version -o /tmp/cca24737.s
GNU C++ version egcs-2.91.42 19980621 (gcc2 ss-980502 experimental)
(i586-pc-linux-gnulibc1) compiled by GNU C version egcs-2.91.42 19980621
(gcc2 ss-980502 experimental).
t2.cc: In function `void foo(class X &)':
t2.cc:6: Internal compiler error.
t2.cc:6: Please submit a full bug report to `egcs-bugs@cygnus.com'.
-----------------------------------------------------------------------------