[C++ patch] for C++/52369
Fabien Chêne
fabien.chene@gmail.com
Mon Mar 31 21:48:00 GMT 2014
2014-03-28 17:59 GMT+01:00 Jason Merrill <jason@redhat.com>:
> On 03/27/2014 05:32 PM, Fabien Chêne wrote:
>>
>> + permerror (DECL_SOURCE_LOCATION (current_function_decl),
>> + "uninitialized reference member in %q#T", type);
>> + inform (DECL_SOURCE_LOCATION (member),
>> + "%q#D should be initialized", member);
>
>
> The inform should only happen if permerror returns true (i.e. without
> -fpermissive -w). OK with that change.
I missed a third case just a few lines above, that I adjusted in the
same manner, by checking the return value of permerror.
Tested x86_64 linux, OK to commit ?
2014-03-30 Fabien Chêne <fabien@gcc.gnu.org>
* cp/init.c (perform_member_init): Homogenize uninitialized
diagnostics.
2014-03-30 Fabien Chêne <fabien@gcc.gnu.org>
* g++.dg/init/ctor4.C: Adjust.
* g++.dg/init/ctor4-1.C: New.
* g++.dg/cpp0x/defaulted2.C: Adjust.
--
Fabien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uninit_2.patch
Type: text/x-diff
Size: 3921 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140331/3167a2a7/attachment.bin>
More information about the Gcc-patches
mailing list