This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
an "INTERNAL" in egcs-1.1 release:complex from f2c.h conflicts with std::complex<double>
- To: egcs-bugs at cygnus dot com
- Subject: an "INTERNAL" in egcs-1.1 release:complex from f2c.h conflicts with std::complex<double>
- From: Tobias Naehring <naehring at eeetw3 dot et dot tu-dresden dot de>
- Date: Tue, 22 Sep 98 11:18:56 +0200
The program `first.cc':
--8K------------------------------------------------------------------
// Next line is part of f2c.h. f2c.h is often included into my programs.
typedef struct { float r, i; } complex;
void main()
{
std::complex<double> number(1,0); // *** This is line 10 ***
}
--8K------------------------------------------------------------------
Compiling this code with
g++ -v --save-temps first.cc
gives:
Reading specs from /home/eeetwc/vlsi94-2/naehring/egcs/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
/home/eeetwc/vlsi94-2/naehring/egcs/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/egcs-2.91.57/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(bsd) -D__EXCEPTIONS -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) first.cc first.ii
GNU CPP version egcs-2.91.57 19980901 (egcs-1.1 release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
/home/eeetwc/vlsi94-2/naehring/egcs/include
/home/eeetwc/vlsi94-2/naehring/include
/home/eeetwc/vlsi94-2/naehring/egcs/include/g++
/usr/local/include
/home/eeetwc/vlsi94-2/naehring/egcs/sparc-sun-sunos4.1.3_U1/include
/home/eeetwc/vlsi94-2/naehring/egcs/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/egcs-2.91.57/include
/usr/include
End of search list.
/home/eeetwc/vlsi94-2/naehring/egcs/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/egcs-2.91.57/cc1plus first.ii -quiet -dumpbase first.cc -version -o first.s
GNU C++ version egcs-2.91.57 19980901 (egcs-1.1 release) (sparc-sun-sunos4.1.3_U1) compiled by GNU C version egcs-2.91.57 19980901 (egcs-1.1 release).
first.cc: In function `int main(...)':
first.cc:10: Internal compiler error 42.
first.cc:10: Please submit a full bug report to `egcs-bugs@cygnus.com'.
The contents of first.s is:
gcc2_compiled.:
___gnu_compiled_cplusplus:
Hopefully that's enough information.
Please contact me if you need anything else.
Best regards,
Tobias Naehring