Incorrect Warning on GCC compile about array parameters

Bug #1983549 reported by Lee Ainsley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-defaults (Ubuntu)
New
Undecided
Unassigned

Bug Description

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?

Lee Ainsley (lainsley)
description: updated
Daniel Manrique (roadmr)
affects: canonical-identity-provider → gcc-defaults (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.