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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |11.0
         Resolution|---                         |FIXED
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot 
gnu.org

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
GCC 11 reports the following warning (with or without static):

$ gcc -S pr67793.c
pr67793.c: In function ‘main’:
pr67793.c:6:16: warning: ‘func’ accessing 32 bytes in a region of size 8
[-Wstringop-overflow=]
    6 |         return func(p);
      |                ^~~~~~~
pr67793.c:6:16: note: referencing argument 1 of type ‘char *’

Reply via email to