https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90253
--- Comment #3 from Alexander Monakov <amonakov at gcc dot gnu.org> --- clang-15 and newer warn for this, enabled by default: warning: due to lvalue conversion of the controlling expression, association of type 'const char' will never be selected because it is qualified [-Wunreachable-code-generic-assoc]