https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97981
--- Comment #4 from Martin Uecker <muecker at gwdg dot de> --- I think the code to drop qualifiers needs to be moved below the check for atomic. I will look into it. (I wonder why this passed checks for me).