EGCS-1.1.1.prelease-2 BUG (namespace ?)

Helmut Jarausch jarausch@IGPM.Rwth-Aachen.DE
Fri Nov 20 01:20:00 GMT 1998


Hi,

as it's your wish here is a bug report:

96 % g++ -v -c EGCS_BUG.C 
Reading specs from /usr/LOCAL/lib/gcc-lib/mips-sgi-irix6.2/egcs-2.91.58/specs
gcc version egcs-2.91.58 19981101 (egcs-1.1.1 pre-release)
 /usr/LOCAL/lib/gcc-lib/mips-sgi-irix6.2/egcs-2.91.58/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Dunix -Dmips -Dsgi -Dhost_mips -DMIPSEB -D_MIPSEB -DSYSTYPE_SVR4 -D_LONGLONG -D_SVR4_SOURCE -D_MODERN_C -D__DSO__ -D__unix__ -D__mips__ -D__sgi__ -D__host_mips__ -D__MIPSEB__ -D_MIPSEB -D__SYSTYPE_SVR4__ -D_LONGLONG -D_SVR4_SOURCE -D_MODERN_C -D__DSO__ -D__unix -D__mips -D__sgi -D__host_mips -D__MIPSEB -D__SYSTYPE_SVR4 -Asystem(unix) -Asystem(svr4) -Acpu(mips) -Amachine(sgi) -D__EXCEPTIONS -D__CHAR_UNSIGNED__ -D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int -D__EXTENSIONS__ -D_SGI_SOURCE -D_MIPS_FPSET=32 -D_MIPS_ISA=_MIPS_ISA_MIPS3 -D_ABIN32=2 -D_MIPS_SIM=_ABIN32 -D_MIPS_SZINT=32 -D_MIPS_SZLONG=32 -D_MIPS_SZPTR=32 -D_COMPILER_VERSION=601 -U__mips -D__mips=3 -D__mips64 EGCS_BUG.C /var/tmp/cclQ0Nc6.ii
GNU CPP version egcs-2.91.58 19981101 (egcs-1.1.1 pre-release) [AL 1.1, MM 40] SGI running IRIX 6.x
#include "..." search starts here:
#include <...> search starts here:
 /usr/LOCAL/include/g++
 /usr/local/include
 /usr/LOCAL/mips-sgi-irix6.2/include
 /usr/LOCAL/lib/gcc-lib/mips-sgi-irix6.2/egcs-2.91.58/include
 /usr/include
End of search list.
 /usr/LOCAL/lib/gcc-lib/mips-sgi-irix6.2/egcs-2.91.58/cc1plus /var/tmp/cclQ0Nc6.ii -quiet -dumpbase EGCS_BUG.cc -version -o /var/tmp/ccVos6j6.s
GNU C++ version egcs-2.91.58 19981101 (egcs-1.1.1 pre-release) (mips-sgi-irix6.2) compiled by GNU C version egcs-2.91.58 19981101 (egcs-1.1.1 pre-release).
EGCS_BUG.C:5: Internal compiler error 382.
EGCS_BUG.C:5: Please submit a full bug report to `egcs-bugs@cygnus.com'.


the program:
#include <complex>

namespace ABC
{
  using ::complex;
}


replacing it with    using std::complex  doesn't trigger this bug,
but here a copy of my recent post to comp.lang.g++.help

I cannot get this tiny program to compile (or link)  unless I move the
#include <iomanip>   directive in front of the  namespace statement:

namespace XYZ
{
#include <iostream>
#include <iomanip>
using ::setprecision;
// using std::setprecision;  // doesn't work either
// no using                     doesn't work either -> link error

  void sub()
  { cout << setprecision(12) << 1.0/3.0 << endl; }
}

main() { XYZ::sub(); }


Thanks for your work on EGCS,
Helmut.

--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany






More information about the Gcc-bugs mailing list