This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47940] can call a pure virtual from a constructor/destructor
- From: "mlg7 at yandex dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 1 Mar 2011 11:34:32 +0000
- Subject: [Bug c++/47940] can call a pure virtual from a constructor/destructor
- Auto-submitted: auto-generated
- References: <bug-47940-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47940
--- Comment #2 from mlg <mlg7 at yandex dot ru> 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 direct to func instead,
>it would be better.
Unfortunately or fortunately, refactoring a huge
real world application to make bugs easier
for the compiler to detect is not an option.