[ub] type punning through congruent base class?

Gabriel Dos Reis gdr at microsoft.com
Thu Jan 16 21:00:50 CET 2014



| -----Original Message-----
| From: ub-bounces at open-std.org [mailto:ub-bounces at open-std.org] On
| Behalf Of Herb Sutter
| Sent: Thursday, January 16, 2014 11:50 AM
| To: WG21 UB study group
| Subject: Re: [ub] type punning through congruent base class?
| 
| > Well, as far as I understand, trivial constructors might not be called at all.
| 
| Maybe "might not be called" is part of the bug then. Isn't the right model that
| trivial ctors are called, but "might do nothing"?

Yes, agreed.

-- Gaby



More information about the ub mailing list