gcc-bugs@gcc.gnu.org
[Top] [All Lists]

[Bug c++/37146] New: ICE - Compiler segfaults

Subject: [Bug c++/37146] New: ICE - Compiler segfaults
From: "springl-gcc at bfw-online dot de"
Date: 18 Aug 2008 11:42:39 -0000
g++ from snapshot gcc-4.4-20080815.tar.bz2 gives

v.cc: In member function 'kostenbezug_e
verteilung_c::bezug_ausrechnen(kostenbezug_e) const':
v.cc:12: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

on this program:
-------------------------------------------------------------------------
enum kostenbezug_e
{ kostenbezug_keiner = 0,
  kostenbezug_einheitlich = 'E',
};

struct verteilung_c
{ kostenbezug_e bezug: 8;
  enum kostenbezug_e bezug_ausrechnen (kostenbezug_e) const;
};

kostenbezug_e
verteilung_c::bezug_ausrechnen (kostenbezug_e b) const
{ return bezug && bezug != kostenbezug_einheitlich? bezug: b;
}
-------------------------------------------------------------------------
when called as
  g++ -O2 -c -o v.o v.cc

This is running on Linux version 2.6.26.2, glibc 2.6.1.
gcc was configured using:
  configure --prefix=/scratch/gcc/4.4-2008-08-08 --enable-shared \
    --enable-languages=all --with-sysroot=/usr/i686-pc-linux-gnulibc2


-- 
           Summary: ICE - Compiler segfaults
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: springl-gcc at bfw-online dot de
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37146

<Prev in Thread] Current Thread [Next in Thread>