https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121647

--- Comment #2 from Ivan Lazaric <ivan.lazaric.gcc at gmail dot com> ---
Some notes from the standard:
https://eel.is/c++draft/stmt.expand#2
```
The compound-statement of an expansion-statement is a control-flow-limited
statement ([stmt.label]).
```

https://eel.is/c++draft/stmt.label#3.1
```
a case or default label appearing within S shall be associated with a switch
statement ([stmt.switch]) within S, and
```

Reading the standard, it seems like I was wrong in my expectations,
and this is explicitly not supported.

Reply via email to