This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/46736 (missing diagnostic for invalid =default)
- From: Dodji Seketeli <dodji at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 09 Dec 2010 14:42:42 +0100
- Subject: Re: C++ PATCH for c++/46736 (missing diagnostic for invalid =default)
- References: <4CFFE382.4010002@redhat.com>
Jason Merrill <jason@redhat.com> writes:
> When a special member function which would be implicitly deleted is
> defaulted outside the class, we need to give a diagnostic at that
> point.
>
> Tested x86_64-pc-linux-gnu, applied to trunk.
>
> commit d63174fad262075f58348e3240445bd384caf309
> Author: Jason Merrill <jason@redhat.com>
> Date: Sat Dec 4 01:28:18 2010 -0500
>
> PR c++/45822
> * cp-tree.h (LOOKUP_DEFAULTED): New.
> * call.c (add_function_candidate): Check it.
> * method.c (synthesized_method_walk): Set it.
> (do_build_copy_assign): Likewise.
> * init.c (perform_member_init): Likewise.
> (emit_mem_initializers): Likewise.
>
Not very important but it looks like this patch does not correspond to
the subject.
--
Dodji