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

--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Created attachment 48586
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48586&action=edit
(somewhat reduced) test case

Here's a somewhat reduced test case; I did not spend too much time
throwing out unnecessary functions or declarations.

The warning I now see is

In function 'ztoa_big',
    inlined from 'write_z' at w2.i:6499:11:
w2.i:6484:6: warning: writing 1 byte into a region of size 0
[-Wstringop-overflow=]
 6484 |   *q = '\0';
      |   ~~~^~~~~~
w2.i: In function 'write_z':
w2.i:6495:8: note: at offset 0 to object 'itoa_buf' with size 33 declared here
 6495 |   char itoa_buf[((sizeof (GFC_REAL_16)) * 2 + 1)];
      |        ^~~~~~~~

so the really big number is gone.

Reply via email to