[Patch] PR c++/44086

Jason Merrill jason@redhat.com
Fri May 21 19:52:00 GMT 2010


On 05/17/2010 03:03 PM, Fabien Chêne wrote:
> 2010-05-17  Fabien Chêne<fabien.chene@gmail.com>
> 	PR c++/44086
> 	* class.c (check_field_decls): Remove the check 'DECL_INITIAL (x)
> 	== NULL_TREE' before setting CLASSTYPE_READONLY_FIELDS_NEED_INIT,
> 	which was preventing uninitialized const bitfields members to be
> 	diagnosed. Same for SET_CLASSTYPE_REF_FIELDS_NEED_INIT.

Hmm, I think we'll want that code for when we implement member 
initializers.  Does it work to just move the 
check_bitfield_decl/check_field_decl hunk up higher?

Jason



More information about the Gcc-patches mailing list