https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113050
--- Comment #2 from Sam James <sjames at gcc dot gnu.org> --- Yeah, for every attempt I had to reconstruct it manually, I just got the expected -Wdiscarded-qualifiers, and then realised it was atomic-specific.