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++/85710] [8/9 Regression] Enabling memset-elt-size warning causes ICE on memset of template member array


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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Jun 11 22:02:25 2018
New Revision: 261465

URL: https://gcc.gnu.org/viewcvs?rev=261465&root=gcc&view=rev
Log:
        PR c++/85710 - ICE with -Wmemset-elt-size.

c-family/
        * c-warn.c (warn_for_memset): Don't crash on incomplete elt type.

Added:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/warn/Wmemset-elt-size1.C
Modified:
    branches/gcc-8-branch/gcc/c-family/ChangeLog
    branches/gcc-8-branch/gcc/c-family/c-warn.c

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