This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/37540
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Jason Merrill" <jason at redhat dot com>
- Cc: "gcc-patches List" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 19 Dec 2008 08:02:04 -0800
- Subject: Re: C++ PATCH for c++/37540
- References: <4925AF26.7060607@redhat.com>
On Thu, Nov 20, 2008 at 10:40 AM, Jason Merrill <jason@redhat.com> wrote:
> The problem here was that we weren't preserving the type of a non-dependent
> call in a template well enough; we need to remember the type of the called
> function as well, and it needs to be a pointer. Fixed thus. I also wrap the
> call in an implicit dereference as appropriate rather than just giving the
> stub CALL_EXPR the dereferenced type; I'm not sure this will make a
> difference, but it might affect something that wants to know if the call is
> an lvalue or not.
>
> Tested x86_64-pc-linux-gnu, applied to trunk.
>
>
Hi,
This caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38577
--
H.J.