PR c++/85710 - ICE with -Wmemset-elt-size.
authorJason Merrill <jason@redhat.com>
Wed, 6 Jun 2018 15:14:12 +0000 (11:14 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 6 Jun 2018 15:14:12 +0000 (11:14 -0400)
commit4dbdb49b1b07a22e9f216b2ca988e17663b959d3
tree9abb6d6f729d70f2d77cf5f60ebf8cb05215a413
parent1d6ccc5f2984952ee71b0bea511cffcd5a30725d
PR c++/85710 - ICE with -Wmemset-elt-size.

c-family/
* c-warn.c (warn_for_memset): Don't crash on incomplete element type.
cp/
* semantics.c (finish_call_expr): Call warn_for_memset here.
* parser.c (cp_parser_postfix_expression): Not here.
(literal_integer_zerop): No longer static.
* pt.c (build_non_dependent_expr): Don't wrap CONST_DECL.

From-SVN: r261238
gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/warn/Wmemset-elt-size1.C [new file with mode: 0644]