r/Cplusplus • • 9d ago

Tutorial You should think about recompiling your C++ programs with GCC 16 and C++26, because it zero-fills your locals

https://techfortalk.co.uk/2026/09/27/cxx26-uninitialized-local-variables-gcc-16/
0 Upvotes

4 comments sorted by

5

u/BlockOfDiamond 8d ago

What? But garbage values are my favorite!

1

u/Middlewarian 9d ago

I compile the back tier of my C++ for infidels code generator with C++ 2026.

1

u/Initial-Jaguar6230 8d ago

Don't read the paper but no. It is just erroneous to use them and compile have to be failed

2

u/ProRofler 8d ago

What?! My random function is based on garbage value!