[Bug 1983549] [NEW] Incorrect Warning on GCC compile about array parameters

Launchpad Bug Tracker 1983549 at bugs.launchpad.net
Thu Aug 4 14:14:08 UTC 2022


You have been subscribed to a public bug:

Jammy Jellyfish 22.04
Using the standard GCC 11.2

Example:
Compiling file.c...
file.c:169:30: error: argument 1 of type ‘unsigned char[64]’ with mismatched bound [-Werror=array-parameter=]
  169 | void sc_reduce(unsigned char x[64])
      |                ~~~~~~~~~~~~~~^~~~~
In file included from file.c:24:
header.h:71:36: note: previously declared as ‘byte *’ {aka ‘unsigned char *’}
   71 | void sc_reduce(byte* s);
      |                              ~~~~~~^
cc1: all warnings being treated as errors

Probable cause:
Bug in GCC 11.2 - due for fix in GCC 11.3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101585

Can GCC 11 be updated in Ubuntu?

** Affects: gcc-defaults (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Incorrect Warning on GCC compile about array parameters
https://bugs.launchpad.net/bugs/1983549
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.



More information about the foundations-bugs mailing list