This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/8719: cc1plus ICE in emit_move_insn_1: init static template variable


>Number:         8719
>Category:       c++
>Synopsis:       cc1plus ICE in emit_move_insn_1: init static template variable
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 26 09:26:03 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Joseph Michaud
>Release:        3.0.4
>Organization:
>Environment:
SGI Fuel running IRIX 6.5.18m
>Description:
nsSoftwareUpdate.cpp: In function `void 
   __static_initialization_and_destruction_0(int, int)':
nsSoftwareUpdate.cpp:32: Internal compiler error in emit_move_insn_1, at expr.c
   :2975
>How-To-Repeat:
Invocation looks like this, source follows:

fuel 909% 
fuel 909% g++ -v -save-temps -c nsSoftwareUpdate.cpp
Reading specs from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/specs
Configured with: ../configure --prefix=/usr/freeware --enable-version-specific-runtime-libs --disable-shared --enable-threads --enable-haifa
Thread model: single
gcc version 3.0.4
 /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/cpp0 -lang-c++ -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=4 -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__CHAR_UNSIGNED__ -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D__LANGUAGE_C -D_LANGUAGE_C -DLANGUAGE_C -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int -D__WCHAR_TYPE__=long int -D__WINT_TYPE__=long 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 nsSoftwareUpdate.cpp nsSoftwareUpdate.ii
GNU CPP version 3.0.4 (cpplib) [AL 1.1, MM 40] SGI running IRIX 6.x
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/freeware/mips-sgi-irix6.5/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/include/g++
 /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/include/g++/mips-sgi-irix6.5
 /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/include/g++/backward
 /usr/freeware/include
 /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/include
 /usr/include
End of search list.
 /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/cc1plus -fpreprocessed nsSoftwareUpdate.ii -quiet -dumpbase nsSoftwareUpdate.cpp -version -o nsSoftwareUpdate.s
GNU CPP version 3.0.4 (cpplib) [AL 1.1, MM 40] SGI running IRIX 6.x
GNU C++ version 3.0.4 (mips-sgi-irix6.5)
        compiled by GNU C version 3.0.4.
nsSoftwareUpdate.cpp: In function `void 
   __static_initialization_and_destruction_0(int, int)':
nsSoftwareUpdate.cpp:32: Internal compiler error in emit_move_insn_1, at expr.c
   :2975
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
fuel 910%  
fuel 910% 


fuel 913% 
fuel 913% cat nsSoftwareUpdate.ii
# 2 "nsSoftwareUpdate.cpp"
class nsIFile
{
};

template <class T>
class nsDerivedSafe : public T
{
private:
  nsDerivedSafe<T>& operator=( const T& );
};

template <class T>
class nsCOMPtr
{
public:
  nsCOMPtr( T* aRawPtr )
    { }
  operator nsDerivedSafe<T>*() const
    {
      return 0L;
    }
};

class nsSoftwareUpdate
{
public:
  nsIFile* foo() { return mProgramDir; }
  static nsCOMPtr<nsIFile> mProgramDir;
};

nsCOMPtr<nsIFile> nsSoftwareUpdate::mProgramDir = 0;
fuel 914% 
fuel 914% 
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]