[PATCH] Do not discard the constructors of empty structs [PR c++/64527]

Jason Merrill jason@redhat.com
Thu Apr 16 14:32:00 GMT 2015


On 04/15/2015 09:00 PM, Patrick Palka wrote:
> -	if (!cleared || num_nonzero_elements > 0)

How about adding || TREE_SIDE_EFFECTS (TREE_OPERAND (*expr_p), 1) to 
this test rather than removing it entirely?

Jason



More information about the Gcc-patches mailing list