Browse Source
The initialization order of global data structures in different implementation units is undefined. Making use of this is essentially gambling on what the linker does, the so-called [Static initialization order fiasco](https://isocpp.org/wiki/faq/ctors#static-init-order). In this case it apparently worked on Linux but failed on OpenBSD and FreeBSD. To create it on first use, make the registration structure local to a function. Fixes #8910.0.14
Wladimir J. van der Laan
8 years ago
2 changed files with 10 additions and 9 deletions
Loading…
Reference in new issue