https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112938
David Binderman <dcb314 at hotmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aoliva at gcc dot gnu.org --- Comment #1 from David Binderman <dcb314 at hotmail dot com> --- Reduced C++ code seems to be: struct mcs_lock { void lock(); void spin_while_eq(volatile bool) {} }; void mcs_lock::lock() { spin_while_eq(false); } Adding the feature author for their opinion.