C++ Logo

std-proposals

Advanced search

Re: [std-proposals] goto is not harmful (was: "once" keyword)

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Thu, 25 May 2023 12:14:31 +0300
On Thu, 25 May 2023 at 12:04, sasho648 via Std-Proposals
<std-proposals_at_[hidden]> wrote:
> Which means - introducing `constexpr goto` from the beginning and now instead of guessing what an implementation may be required to do to allow it - just looking at existing implementations that have allowed it.

None of them have allowed it, and three out of for major
implementation vendors report it being a significant burden to add.
The fourth one hasn't said anything about it.

There's a difference between having a goto in a function declared
constexpr and evaluating a goto in a constant expression.

Received on 2023-05-25 09:14:44