[Bug c++/26621] template Instanciation fails for -O1 -finline-functions

2006-03-09 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||pinskia at gcc dot gnu dot |

[Bug c++/26621] template Instanciation fails for -O1 -finline-functions

2006-03-09 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-09 16:49 --- I don't think this is a bug. We are inlining CVectorWrap::~CVectorWrap into main which causes the reference to TTypeWrapper::~TTypeWrapper and TTypeWrapper::~TTypeWrapper is not used in instance.cc at all so it is

[Bug c++/26621] template Instanciation fails for -O1 -finline-functions

2006-03-09 Thread _talyn_ at web dot de
--- Comment #3 from _talyn_ at web dot de 2006-03-09 18:06 --- Allocating the CVectorWrap variable dynamically removes the undefined reference to TTypeWrapper::~TTypeWrapper. I guess that's because it is virtual, and a dynamic instance of CVectorWrap will call CVectorWrap::~CVectorWrap