https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71675
--- Comment #2 from Julian Stecklina <js at alien8 dot de> --- Return bool actually makes sense, because that is the result from the "compare" part of compare/exchange. I am not sure what the meaning of 'type' as a result would be.