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: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 1 Mar 2011 10:14:03 +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 #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 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.