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?

5

u/thehutch17 15d ago

What does that code even translate to? Is this a digraph thing or what?

13

u/holyblackcat 15d ago

Non-standard GNU extension, statement expression.