This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++/4351


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]