r/cpp • DragonflyDB/Clang • Sep 06 '22

Clang 15 has been released!

https://discourse.llvm.org/t/llvm-15-0-0-release/65099
265 Upvotes

84 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Sep 19 '22

A while back I was trying to compile gtkmm (the official C++ wrapper for GTK) on C++20 mode, but it wouldn't compile because they had been using "module" as an identifier, which turned into a keyword in C++20.

So there you go. A real world example of breaking a major library in a way that's potentially impossible to fix without breaking its API, depending on where that identifier was used.

1

u/wyrn Sep 19 '22

What's your point?

1

u/[deleted] Sep 19 '22

It is dishonest to say C++ has strong backwards compatibility.

1

u/wyrn Sep 19 '22

Strange, because that's an explicit goal of the language.

0

u/[deleted] Sep 19 '22

Maybe it is a goal, but it is not being achieved in a meaningful sense.

1

u/wyrn Sep 19 '22

Because a huge project like gtk failed to build because of a single keyword? I've had bigger compatibility issues when changing compilers. More saliently: how does that disprove any of what I said? Did the const operator() overload of std::function disappear? Did it change semantics?