https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82323
--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> --- (In reply to Bernd Edlinger from comment #6) Sounds reasonable. I put the following example together to illustrate an incompatible alias declaration that should be diagnosed but isn't. char* f (void) __attribute__ ((alias ("g"))); // missing -Wattribute-alias int g (s) char *s; { return __builtin_strlen (s); }