bluGill 3 days ago

> UB in uninitialized variables

You will be happy to learn the uninitialized variables are not UB as of C++26.

1
quotemstr 2 days ago

They're just initialized to some unspecified value and cause almost-as-hard-to-diagnose faults.

bluGill 2 days ago

the unspecified value is supposed to be something really obviously wrong (in particular sanitizers will look for it.) and so be easier to diagnose with tools. Unlike 0 which is really hard to diagnose because often it is the right value and so when it isn't you won't realize what you did wrong.