http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45900
janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2010.10.05 21:00:31 CC| |janus at gcc dot gnu.org Summary|[OOP] Polymorphic method |[OOP] Static TBP resolved |not called |incorrectly Ever Confirmed|0 |1 --- Comment #1 from janus at gcc dot gnu.org 2010-10-05 21:00:31 UTC --- Confirmed. This is basically a duplicate of PR45836. The TBP call here is non-polymorphic, since the type of the passed object is fixed at compile time. The problem is that it is resolved to the wrong procedure (due to the procedures having the same name).