https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121594
Bug ID: 121594 Summary: Expansion statement with constexpr for-range-declarator does not compile Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris.staletic at protonmail dot com Target Milestone: --- Apologies if this is known already. I have not found a similar bug report already open. https://godbolt.org/z/E67nszh6h To my understading, the clang (fork) is correct that the snippet in the godbolt link should compile. A slight change to the above example helps gcc compile: https://godbolt.org/z/WqT7qE88Y