C++ PATCH for c++/56358 (inheriting ctors breaking lookup)

Gabriel Dos Reis gdr@integrable-solutions.net
Thu Feb 28 02:01:00 GMT 2013


On Wed, Feb 27, 2013 at 10:37 AM, Jason Merrill <jason@redhat.com> wrote:
> We were trying to keep the USING_DECL for an inheriting constructor from
> interfering with name lookup, but it still did.  It occurred to me that the
> obvious way to avoid it interfering with the name of the base is to give the
> USING_DECL the constructor name, and then we can remove some of the special
> handling.
>
> Tested x86_64-pc-linux-gnu, applying to trunk.

I like it when a bug fix consists of removing code or running less code :-)

-- Gaby



More information about the Gcc-patches mailing list