48 points · by virtualcpp · 9y ago · 23 comments
http://lists.llvm.org/pipermail/llvm-bugs/2017-June/056419.h...
For example, this is the error message GCC returns when it catches an "override" keyword when compiling with --std=c++03 flags:
> controls (override/final) only available with -std=c++11 or -std=gnu++11
#include <memory>
#define u8 }{
struct Foo {
char const *foo() {
char const *r = u8"foo";
std::make_unique<int>(1);
return r;
}
};
Maybe now you can argue it won't happen in practice, and my intuition is you'd still be wrong for large projects, but I don't have the time to try to come with a more realistic example. Hopefully this is enough to get the point across though. The syntax has changed, and the compiler can be only so smart trying to decipher it efficiently.