[Bug c++/47940] can call a pure virtual from a constructor/destructor

2011-03-01 Thread mlg7 at yandex dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47940 --- Comment #2 from mlg 2011-03-01 11:34:30 UTC --- Yes it _is_ hard to detect. My colleague was suspecting a build system bug/feature at first (hours for a full rebuild). If it was a direct call, there would be a linker error. >If the call was d

[Bug c++/47940] can call a pure virtual from a constructor/destructor

2011-03-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47940 --- Comment #1 from Andrew Pinski 2011-03-01 10:13:57 UTC --- This is hard to detect really. Basically what the function usefunc needs to marked as calling a virtual function. If the call was direct to func instead, it would be better.