C++ Logo

std-discussion

Advanced search

Re: UB in P2641 'Checking if a union alternative is active'

From: language.lawyer_at <language.lawyer_at_[hidden]>
Date: Tue, 20 Jun 2023 12:50:13 +0500
>> What is u.c then, an «empty lvalue»?)))))))))))))
>> u.c denotes an out-of-lifetime object.
>
> By my reading of [basic.life]/7, it refers to allocated storage that
> the object could occupy, not any actual object.

https://cplusplus.github.io/CWG/issues/1853.html
https://cplusplus.github.io/CWG/issues/2551.html

Received on 2023-06-20 07:50:19