[Bug c/94040] [9/10 Regression] ICE in get_constant, at c-family/c-format.c:325 (error: 'format' attribute argument 2 value '3' refers to parameter type 'int *')

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 5 09:35:00 GMT 2020


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
struct tm
{
  int tm_sec, tm_min, tm_hour, tm_mday, tm_mon;
  int tm_year, tm_wday, tm_yday, tm_isdst;
};

__SIZE_TYPE__
strftime (char *, __SIZE_TYPE__, int *, struct tm *);

int
foo (char *p, struct tm *t)
{
  return strftime (p, 0, 0, t);
}

ICEs with -Wformat even without -m32.


More information about the Gcc-bugs mailing list