This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE in fix_lexical_addr @ function.c:5296
- To: gcc-bugs at gcc dot gnu dot org
- Subject: ICE in fix_lexical_addr @ function.c:5296
- From: petter dot urkedal at telia dot com
- Date: Sun, 06 Feb 2000 11:47:30 +0100
- Reply-To: petter at matfys dot lth dot se
GCC gives this ICE when I use it with -O2 and libstdc++-v3 (compiled
with -fhonor-std). Attached is the gzipped preprocessed input. The
GCC snapshot was compiled from the CVS sources.
Cheers,
Petter.
[petter@mundane:~/src/test]$ /usr/local/newgcc/bin/g++ -v
Reading specs from
/usr/local/newgcc/lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 20000131 (experimental)
[petter@mundane:~/src/test]$ uname -a
Linux mundane 2.2.13 #1 Mon Nov 8 15:37:25 CET 1999 i686 unknown
[petter@mundane:~/src/test]$ /usr/local/newgcc/bin/g++ -fhonor-std
-I/usr/local/newgcc/include/g++-v3 -L/usr/local/newgcc/lib
-Wl,-rpath,/usr/local/newgcc/lib -O2 -c ice_in_ios_base.cc
/usr/local/newgcc/include/g++-v3/bits/ios_base.h: In function `int main
()':
/usr/local/newgcc/include/g++-v3/bits/ios_base.h:8: Internal compiler
error in `fix_lexical_addr', at function.c:5296
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
instructions.
[petter@mundane:~/src/test]$ cat ice_in_ios_base.cc
#include <ios>
#include <fstream>
struct C : public std::ifstream {
C(std::ios_base::openmode which =
std::ios_base::in|std::ios_base::binary)
: std::ifstream("") {}
};
int main() {
C is;
}
ice_in_ios_base.ii.gz