https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97206

--- Comment #1 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Testcase 2: something related happens to wavpack-5.3.2 package where gcc
stopped typechecking array declarations:

  char *a(char *__restrict, int);
  __attribute__((__access__(__write_only__, 1))) char *a(char *, int);
  extern const char b[6];
  extern const char b[];

$ gcc-10.2.0 -c a.c -o a.o
$ gcc-11.0.0 -c a.c -o a.o
a.c:4:19: error: conflicting type qualifiers for 'b'
    4 | extern const char b[];
      |                   ^
a.c:3:19: note: previous declaration of 'b' was here
    3 | extern const char b[6];
      |                   ^

Note: presence of seemingly unrelated 'a' declaration affects 'b' typechecking.

Reply via email to