Discussion about this post

User's avatar
The Coding Gopher's avatar

On the C++20 codebases teams still ship, you can get both of these early: GCC already warns on them by default, so -Werror=return-local-addr -Werror=delete-incomplete turns "compiles with a warning if you're lucky" into a hard error today. Clang has the same pair (-Wreturn-stack-address, -Wdelete-incomplete).

Ready for more?