c++/4351

Harri Pasanen harri.pasanen@trema.com
Wed Oct 17 02:26:00 GMT 2001


The following reply was made to PR c++/4351; it has been noted by GNATS.

From: Harri Pasanen <harri.pasanen@trema.com>
To: gcc@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
        gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc: jessica@cup.hp.com
Subject: Re: c++/4351
Date: Wed, 17 Oct 2001 11:24:29 +0200

 I spent some hours reducing the testcase to a minimal sample:
 ---------------------------8<---------------------------8<---------------------------8<------
 class Exception {
 public:
   virtual void _raise() = 0;
   inline Exception() {}
   inline Exception(const Exception& ex) {}
 };
  
 class AdapterAlreadyExists : public Exception
 {
   virtual void _raise();
 };
  
 void AdapterAlreadyExists::_raise() { throw *this; }
 ---------------------------8<---------------------------8<---------------------------8<------
 
 The above program compiles fine on Linux, Sparc Solaris 2.7 using gcc 2.95.2, 
 gcc 3.0.x .
 
 On HP-UX 11.00, the source above being in poa-smaller.cxx, I get:
 
 bash-2.02$ g++ -c poa-smaller.cxx
 poa-smaller.cxx: In member function `virtual void
    AdapterAlreadyExists::_raise()':
 poa-smaller.cxx:13: Internal error: Segmentation fault
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
 
 bash-2.02$ g++ -v
 Reading specs from /usr/gnu/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.2/specs
 Configured with: ../gcc/configure --prefix=/usr/gnu --with-gnu-as 
 --with-as=/usr/gnu/bin/as --enable-threads=posix --enable-languages=c,c++
 Thread model: posix
 gcc version 3.0.2 20011002 (prerelease)
 
 Any ideas?
 
 -Harri



More information about the Gcc-prs mailing list