From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.1 (X11; Linux i686; U;) Gecko/20020519 Description of problem: Internal compiler error building double.cc Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: Build jikes from src.rpm. (first, it is necessarry to comment out NAN in double.h - because it is defined in gcc's standard headers) Additional info:
Can you please write here the g++ options used to reproduce it, rerun it with -save-temps in addition to that and attach here double.ii? Thanks.
The command line is: i686-redhat-linux-g++ -DHAVE_CONFIG_H -I. -I. -I. -O2 -march=i686 -c -o double.o `test -f double.cpp || echo './'`double.cpp
Created attachment 58267 [details] The temporary file
The primary problem is that g++ 3.x defines _GNU_SOURCE unconditionally for C++, so e.g. <bits/nan.h> gets included, which colides with Jikes' NAN enum. Either Jikes should #undef NAN after including all headers, or choose another name for NAN in the enum. But of course, compiler shouldn't segfault. Looking into it.