public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7782: C++ compiler internal error in delete_insn, at cfgrtl.c:139
@ 2002-08-30 18:46 jvd
  0 siblings, 0 replies; only message in thread
From: jvd @ 2002-08-30 18:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7782
>Category:       c++
>Synopsis:       C++ compiler internal error in delete_insn, at cfgrtl.c:139
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 30 13:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.2
>Organization:
>Environment:
System: Linux homer 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.2/configure 
>Description:
 Given the compiler command:
   g++ -v -Wall -O -c source.cc
   
 The following internal error results:
    Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
    Configured with: ../gcc-3.2/configure 
    Thread model: posix
    gcc version 3.2
     /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ source.cc -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase source.cc -O -Wall -version -o /tmp/ccQCao7G.s
    GNU CPP version 3.2 (cpplib) (i386 Linux/ELF)
    GNU C++ version 3.2 (i686-pc-linux-gnu)
	    compiled by GNU C version 3.2.
    ignoring nonexistent directory "NONE/include"
    ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
    #include "..." search starts here:
    #include <...> search starts here:
     /usr/local/qt/include
     /usr/local/include/c++/3.2
     /usr/local/include/c++/3.2/i686-pc-linux-gnu
     /usr/local/include/c++/3.2/backward
     /usr/local/include
     /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/include
     /usr/include
    End of search list.
    source.cc: In member function `void Int128T::foo(int&)':
    source.cc:67: Internal compiler error in delete_insn, at cfgrtl.c:139
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:

typedef long long Int64T;
typedef unsigned long long Uint64T;

class Int128T
{
protected:
   Uint64T dataLeast;
   Int64T dataMost;

public:

   Int128T ()
   {
   }

   Int128T (const Int128T &v)
   {
      dataMost = v.dataMost;
      dataLeast = v.dataLeast;
   }

   Int128T &operator = (const Int128T &v)
   {
      dataMost = v.dataMost;
      dataLeast = v.dataLeast;
      return *this;
   }

   int sign () const
   {
      if (dataMost == 0)
	 return (dataLeast == 0) ? 0 : 1;

      return (dataMost < 0) ? -1 : 1;
   }

   Int128T operator - () const
   {
      Int128T res;

      res.dataMost = ~dataMost;
      if ((res.dataLeast = -dataLeast) == 0)
	 res.dataMost++;

      return res;
   }

   void foo (int &rem);
};


void Int128T::foo (int &rem)
{
   int ss = sign ();
   Int128T x;

   if (ss < 0)
      x = -*this;

   Int128T q;

   if (ss < 0)
      *this = -q;

   *this = q;
}

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-30 20:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-30 18:46 c++/7782: C++ compiler internal error in delete_insn, at cfgrtl.c:139 jvd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).