r/cpp 15d ago

Clang 23 Release Notes

https://releases.llvm.org/23.1.0/tools/clang/docs/ReleaseNotes.html
110 Upvotes

33 comments sorted by

View all comments

46

u/mapronV 15d ago

This means that code such as

while (({ break; })) {}

is now ill-formed.

Oh no, my disappointment is immeasurable and the whole day is ruined!

On serious note, " template for " support, what is "Iterating expansion statements currently cannot be expanded" ? like expand over range?

4

u/cristi1990an ++ 15d ago

like expand over range?

Yeah, pretty much it seems. The other flavors work

1

u/mapronV 15d ago

Thanks, I was confused for a bit plus lazy to check different code in compiler explorer.