C++ Logo

sg12

Advanced search

Re: [ub] Proposal: make self-initialized references ill-formed (C++17?)

From: David Krauss <david_work_at_[hidden]>
Date: Tue, 23 Sep 2014 11:03:55 +0800
On 2014–09–23, at 12:02 AM, Jens Maurer <Jens.Maurer_at_[hidden]> wrote:

> So, something like the following would be ill-formed?

> That seems unimplementable, because order-of-initialization
> for global variables is unspecified between translation units.

I think what we’re fishing for is ODR-use and ill-formed/NDR.

Received on 2014-09-23 05:04:14