[Bug c++/52972] New: [4.6] Pure virtual method is called instead of child's method
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 Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: dri...@gmail.com Created attachment 27150 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27150 Bug sample drino@netbook:~/src$ g++ test.cpp drino@netbook:~/src$ ./a.out pure virtual method called terminate called without an active exception Aborted
[Bug c++/52972] Pure virtual method is called instead of child's method
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.
[Bug c++/52972] Pure virtual method is called instead of child's method
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?
[Bug c++/52972] Pure virtual method is called instead of child's method
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.