c++/7910: [cygwin] Seg fault of g++ 3.2 when compiling OpenSceneGraph 0.9.1

Giovanni Bajo giovannibajo@libero.it
Sun Apr 6 23:05:00 GMT 2003


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
r=7910

I can reproduce this only with 3.3 (20030401). Redux is:

---------------------------------------------
class __attribute__((dllimport)) Foo
{
   public:
        virtual void dummy_foo_func(void)
        {}
};

class Bar : public Foo
{
    public:
        ~Bar();
        void dummy_bar_func();
};

Bar::~Bar()
{}

void Bar::dummy_bar_func()
{}
---------------------------------------------
pr7910.cpp:20: internal compiler error: Segmentation fault
Please submit a full bug report,

Notice that Bar's destructor and the other dummy function _must_ be defined
out of the class definition for the ICE to happen. 2.95, 3.2 and 3.2.2
compile the code correctly. I can't test with 3.4 (mainline broken for
cygwin).

3.3 regression only.

Giovanni Bajo



More information about the Gcc-bugs mailing list