This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4351
- To: gcc at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Subject: Re: c++/4351
- From: Harri Pasanen <harri dot pasanen at trema dot com>
- Date: Wed, 17 Oct 2001 11:24:29 +0200
- Cc: jessica at cup dot hp dot com
- Organization: Trema Laboratories
- Reply-To: harri dot pasanen at trema dot com
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