This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: std::aligned_storage and [[gnu::may_alias]]


On 23 June 2017 at 00:01, Jonathan Wakely wrote:
> On 22 June 2017 at 19:06, Avi Kivity <avi@scylladb.com> wrote:
>> I agree the implicit copy constructor is broken, but I don't see how
>> operator[] is legal. It seems to give a single address two dynamic types.
>
> No it doesn't. There's only one dynamic type at a time.

And as far as I can see, operator[] only assumes the dynamic type is
T, and only access it as T. Where's the second dynamic type?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]