Jeff Law via Gcc <gcc@gcc.gnu.org> writes:
> On 1/3/23 04:16, Florian Weimer via Gcc wrote:
>> It seems that the default constructor of the non-POD poly-ints does
>> nothing.  Is this intentional?  I expected zero initialization, to match
>> regular ints.
> I think it was intentional.  Richard Sandiford would know for sure.  But 
> Martin Sebor might know as well since I think they discussed it at 
> length a little while back.

Yeah, it was intentional, to try to get -Wunitialized warnings.
But it predates C++11 being required, so = default would probably
be a better choice now.

Thanks,
Richard

Reply via email to