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

Daniel Manrique 1983549 at bugs.launchpad.net
Thu Aug 4 14:14:07 UTC 2022


** Project changed: canonical-identity-provider => gcc-defaults (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1983549

Title:
  Incorrect Warning on GCC compile about array parameters

Status in gcc-defaults package in Ubuntu:
  New

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?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1983549/+subscriptions




More information about the foundations-bugs mailing list