[Bug c++/52978] Inherit from Template with specified type and override virtual function
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 13 17:33:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52978
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-13 17:33:16 UTC ---
(In reply to comment #1)
> The base class has a pure virtual function with this signature:
>
> void blub(const int* const&) const
Oops, sorry, that should be:
void blub(int* const&) const
This is a reference to const pointer to int.
> The derived class has a virtual function with this signature:
>
> void blub(const int*&) const
>
> They're not the same.
This is a reference to pointer to const int.
Not the same thing.
More information about the Gcc-bugs
mailing list