https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71456
Eric Gallager <egall at gwmail dot gwu.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egall at gwmail dot gwu.edu --- Comment #2 from Eric Gallager <egall at gwmail dot gwu.edu> --- (In reply to Martin Sebor from comment #0) > (Clang only diagnoses the dynamic initialization with potential side-effects > with -Wglobal-constructors, and regardless of whether the static variable is > used or not.) Speaking of -Wglobal-constructors, FSF GCC doesn't support this option. Is there a bug open for adding it? I couldn't find one when searching.