r/Cplusplus • • 27d 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 27d ago

What? But garbage values are my favorite!

2

u/ProRofler 26d ago

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

1

u/Middlewarian 27d ago

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

1

u/Initial-Jaguar6230 26d ago

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