This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/70852] ice in warn_for_memset


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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
/* PR c/70852 */
/* { dg-do compile } */
/* { dg-options "-Wall" } */

extern void *memset (void *, int, __SIZE_TYPE__);
extern int A[];
void
fn1 (void)
{
  memset (A, 0, 1);
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]