C++ Logo

liaison

Advanced search

Re: [wg14/wg21 liaison] unreachable control flow

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Sun, 16 May 2021 13:23:07 +0300
On Sun, 16 May 2021 at 13:13, Jā‚‘ā‚™ā‚› Gustedt via Liaison
<liaison_at_[hidden]> wrote:
>
> Hello,
> it seems that C++ has integrated
>
> https://wg21.link/p0627
>
> into C++20.

That seems incorrect, the proposal is still in the pipeline.

> This provides a pseudo-function `unreachable` where a call
> indicates that the whole path in the control flow that reaches it can
> never be taken.
>
> Is there interest / attempt / opposition of porting this feature to C?

I would be happy to have the facility both in C and C++.

Received on 2021-05-16 05:23:20