Follow

BAD G++!

Apparently, g++-9.2.1 does *not* const-initialize a `static Class x;` with a constexpr ctor, *if* it also happens to have an uninitialized uint64_t array member. It does not generate a warning either, but surely triggers the "C++ Static Initialization Order Fiasco" at some inconvenient future point.

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!