http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52972
--- Comment #6 from drinob at gmail dot com 2012-04-13 17:43:44 UTC ---
Thank you for your explanation. Now it's all clear.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52972
--- Comment #4 from drinob at gmail dot com 2012-04-13 16:35:35 UTC ---
But it seems to work in g++ 4.3 (which is used at ideone.com):
http://ideone.com/zy5R4
Is that behavior uncorrect?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52972
--- Comment #3 from drinob at gmail dot com 2012-04-13 16:28:36 UTC ---
Yes, this is my mistake.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52972
Bug #: 52972
Summary: [4.6] Pure virtual method is called instead of child's
method
Classification: Unclassified
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED