[Bug c++/47942] Not possible to initialize a shared_ptr with a class defined in function scope, inheriting from a global scope base class

2011-03-01 Thread skagget77 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47942 --- Comment #4 from Johan Andersson 2011-03-01 13:58:00 UTC --- Thanks for the quick reply and advice to use static_cast, the reinterpret_cast was a temporary memory lapse! The old GCC version was because I used a web-interface to verify the pro

[Bug c++/47942] Not possible to initialize a shared_ptr with a class defined in function scope, inheriting from a global scope base class

2011-03-01 Thread skagget77 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47942 --- Comment #1 from Johan Andersson 2011-03-01 13:28:26 UTC --- I might add that this bug is also present in gcc (Debian 4.4.5-11) 4.4.5.

[Bug c++/47942] New: Not possible to initialize a shared_ptr with a class defined in function scope, inheriting from a global scope base class

2011-03-01 Thread skagget77 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47942 Summary: Not possible to initialize a shared_ptr with a class defined in function scope, inheriting from a global scope base class Product: gcc Version: 4.1.2 Stat