public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14108] New: ICE on simple testcase
@ 2004-02-11 12:16 altacsd at yahoo dot fr
  2004-02-11 16:41 ` [Bug c++/14108] " pinskia at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: altacsd at yahoo dot fr @ 2004-02-11 12:16 UTC (permalink / raw)
  To: gcc-bugs

I couldn't find a record for this bug, even if #12103 looked similar.
Here is the reduced testcase I made :

class ClassC {
public:
  ~ClassC();
};

class ClassA {
  virtual ClassC f();
};

class ClassB : public virtual ClassA {
  virtual ClassC f();
};

ClassC ClassB::f() {
  return ClassC();
}

The G++ error returned :

$ sparc-sun-solaris2.8-g++ -c bugtest.cpp
bugtest.cpp: In member function `ClassC ClassB::_ZTv0_n12_N6ClassB1fEv()':
bugtest.cpp:17: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

It seems to be related to the ClassC destructor, the 'public virtual'
inheritance of ClassA in ClassB, and the definition of ClassB::f() outside of
ClassB. They are all necessary to reproduce the error.

It concerns gcc-3.4-20040128 cross-compiled for solaris2.8 with :
configure --prefix="/cygdrive/d/work/MSYS/home/cross-builds/builds-sparc"
--target=sparc-sun-solaris2.8
--with-sysroot="/cygdrive/d/work/MSYS/home/cross-builds/arch-original/sparc-runtime"
--with-gnu-as --with-gnu-ld --without-newlib --enable-threads --disable-nls

I don't have any other gcc 3.4 to test with yet.
The testcase can be compiled without error with gcc-3.2-20020927 (cygwin target).

Regards,
Emmanuel

-- 
           Summary: ICE on simple testcase
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: altacsd at yahoo dot fr
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: sparc-sun-solaris2.8


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


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

end of thread, other threads:[~2004-02-14  2:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-11 12:16 [Bug c++/14108] New: ICE on simple testcase altacsd at yahoo dot fr
2004-02-11 16:41 ` [Bug c++/14108] " pinskia at gcc dot gnu dot org
2004-02-11 16:50 ` pinskia at gcc dot gnu dot org
2004-02-11 16:57 ` altacsd at yahoo dot fr
2004-02-11 17:47 ` [Bug c++/14108] [3.4/3.5 regression] " pinskia at gcc dot gnu dot org
2004-02-11 21:11 ` ebotcazou at gcc dot gnu dot org
2004-02-11 21:15 ` pinskia at gcc dot gnu dot org
2004-02-11 22:01 ` ebotcazou at gcc dot gnu dot org
2004-02-12 16:18 ` ebotcazou at gcc dot gnu dot org
2004-02-12 16:22 ` ebotcazou at gcc dot gnu dot org
2004-02-12 19:04 ` ebotcazou at gcc dot gnu dot org
2004-02-13  8:07 ` ebotcazou at gcc dot gnu dot org
2004-02-13 19:02 ` ebotcazou at gcc dot gnu dot org
2004-02-13 20:37 ` mmitchel at gcc dot gnu dot org
2004-02-14  0:49 ` cvs-commit at gcc dot gnu dot org
2004-02-14  2:33 ` cvs-commit at gcc dot gnu dot org
2004-02-14  2:36 ` mmitchel at gcc dot gnu dot 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).