More funny would be

 

```cpp

label1: for (…) {
  continue label1;
  for label1 (....) 
    goto label1;
```


 

-----Ursprüngliche Nachricht-----
Von: Oliver Hunt via Std-Proposals <std-proposals@lists.isocpp.org>
Gesendet: Mo 06.01.2025 20:37
Betreff: Re: [std-proposals] Bringing break/continue with label to C++
An: std-proposals@lists.isocpp.org;
CC: Oliver Hunt <oliver@apple.com>;

 

So adopting N3377 (or whichever it is) does not mean C++ compilers would not support ```label: continuable-breakable-statement```, but would mean they would need to support both, and then you could imagine this nonsense:


```cpp

label1: for (…) {
  continue label1;
  for label1 (....) 
    continue label1;
```