From: Kevin Meinert (kevn++at++vrac.iastate.edu)
Date: 01/03/2002 15:04:24
Hi,
Posted previously was a bug about dynamic_cast causing seg fault when used
with -lpf
I am getting this bug again with version 2.5 of performer RPMs (downloaded
today).
example code that reproduces the bug (submitted previously by another on
this list):
--------------------------------------------------
class MyBaseclass
{
public:
virtual void foo() {};
};
class MyDerivedClass : public MyBaseclass
{
public:
virtual void foo() {};
};
main ()
{
MyBaseclass *Temp = new MyDerivedClass;
MyDerivedClass *Temp2 = dynamic_cast< MyDerivedClass *> (Temp);
}
--------- snip -----------
bad:
g++ -o dynamic dynamic_cast.cpp -lpf
good:
g++ -o dynamic dynamic_cast.cpp
------------------------------------------
the bad target segfaults, while the good target does not.
compiler info:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
other packages installed:
libstdc++-2.96-98
compat-libstdc++-6.2-2.9.0.16
libstdc++-devel-2.96-98
gcc-2.96-98
gcc-c++-2.96-98
-- ++at++--++at++---++at++---++at++----++at++-----++at++------++at++------++at++-----++at++----++at++---++at++---++at++--++at++ Kevin Meinert __ _ __ http://www.vrac.iastate.edu/~kevn \ || \| \ / ` Virtual Reality Applications Center \ ||.-'|--\\ Howe Hall, Iowa State University, Ames Iowa \|| \| \`__, -----------------------------------------------------------
This archive was generated by hypermail 2b29 : Thu Jan 03 2002 - 15:03:29 PST