public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46304] New: g++ crashes with ICE in bitmap_first_set_bit, at bitmap.c:770
@ 2010-11-04 17:14 apataki at apataki dot net
  2010-11-04 21:01 ` [Bug c++/46304] " apataki at apataki dot net
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: apataki at apataki dot net @ 2010-11-04 17:14 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: g++ crashes with ICE in bitmap_first_set_bit, at
                    bitmap.c:770
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: apataki@apataki.net


g++ 4.5.1 crashes with an internal compiler error on the following C++ code
(trimmed down from a larger codebase - in this shortened state it is clearly
not expected to work/do anything useful):


#include <complex.h>


template<class T>
class ClassA
{
    complex double *data;

public:
    void setSize()
    {
    data[0] = 1.0 + 2.0i;
    }
};


template<class TCoeff, class TRHS>
class ClassB
{
    ClassA<TCoeff> a1;
    ClassA<TRHS> a2;

public:
    void setSize()
    {
    a1.setSize();
    a2.setSize();
    }
};


class ClassC
{
    ClassB<double, complex double> d;
    virtual void init();
};

void ClassC::init()
{
    d.setSize();
}



$ g++ -c z8.cc
z8.cc: In member function ‘void ClassA<T>::setSize() [with T = __complex__
double]’:
z8.cc:41:1: internal compiler error: in bitmap_first_set_bit, at bitmap.c:770
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccL3ZMfZ.out file, please attach this to
your bugreport.


$ g++ -v
Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.5.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,lto --enable-plugin
--enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) 

This is on a Fedora 14 x86-64 system.


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2011-04-20  6:50 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-04 17:14 [Bug c++/46304] New: g++ crashes with ICE in bitmap_first_set_bit, at bitmap.c:770 apataki at apataki dot net
2010-11-04 21:01 ` [Bug c++/46304] " apataki at apataki dot net
2010-11-04 23:05 ` hjl.tools at gmail dot com
2010-11-05  5:57 ` jason at gcc dot gnu.org
2010-11-05 10:49 ` [Bug c++/46304] [4.5 Regression] " rguenth at gcc dot gnu.org
2010-11-05 10:55 ` rguenth at gcc dot gnu.org
2010-11-05 11:20 ` rguenth at gcc dot gnu.org
2010-11-12 15:16 ` rguenth at gcc dot gnu.org
2010-11-14 11:51 ` rguenth at gcc dot gnu.org
2010-11-16 15:13 ` apataki at apataki dot net
2010-12-16 13:10 ` rguenth at gcc dot gnu.org
2011-04-18 14:34 ` rguenth at gcc dot gnu.org
2011-04-20  0:44 ` jason at gcc dot gnu.org
2011-04-20  6:31 ` jason at gcc dot gnu.org
2011-04-20  6:32 ` jason at gcc dot gnu.org
2011-04-20  6:34 ` jason at gcc dot gnu.org
2011-04-20  6:50 ` jason at gcc dot gnu.org

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).