https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114808
--- Comment #7 from Joseph S. Myers <jsm28 at gcc dot gnu.org> --- Yes, this is deliberate following the resolution of DR#423 which means qualifiers are ignored on function return types (it's still diagnosed in pre-C11 modes).