This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Error on GCC 3.4 release web page
Johan Bergman (KI/EAB) wrote:
> There seems to be an error in the following example, found on
http://gcc.gnu.org/gcc-3.4/changes.html.
> The problem with the example is that the member function g() in C<T> calls
itself.
Actually the example is meant to show name lookup issue, not to have a proper
runtime behaviour. Anyway, I would not object renaming that function to avoid
any confusion for the user.
> Maybe you could also mention the following alternative corrected
> definition of C<T>::h.
> template <typename T> struct C : B<T> {
> using B<T>::m;
> using B<T>::f;
> using B<T>::n;
> using B<T>::g;
Makes sense. Can you please provide a patch against the HTML file, and post it
to gcc-patches@gcc.gnu.org?
Thanks,
Giovanni Bajo