Hacker News new | ask | show | jobs
Neither GCC nor Clang are compliant with standard C++ (sebsite.pw)
4 points by jandeboevrie 14 days ago
2 comments

Reminds me of this beautiful C++ video that an ex-colleague of mine made.

https://www.youtube.com/watch?v=7fGB-hjc2Gc

Another issue I've had with strict conformance in gcc/clang even with regular C is that it will always replace #include <stdint.h> with its own copy even when forcing a C standard that doesn't have it like C89, which also means it will try to use language features you don't (or shouldn't) have. And trying to include your own stdint.h under -std=c89 can fail as well due to it substituting the internal one, even if using -nostdinc or custom -isysroot/-isystem options.