On 11/10/2017 04:45 PM, David Malcolm wrote:
gcc/c-family/ChangeLog: * c-warn.c (warn_for_memset): Strip any location wrappers from arg0 and arg2.gcc/cp/ChangeLog: * parser.c (cp_parser_postfix_expression): Before warn_for_memset, strip any wrapper around "arg2" before testing for CONST_DECL.
Despite my earlier comment about fold_for_warn, I guess this is specifically interested in literals, so this is OK.
Jason