This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH for c++/46736 (missing diagnostic for invalid =default)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]