re PR sanitizer/80659 (-fsanitize=address evokes ICE in in gimplify_switch_expr)
authorMarek Polacek <polacek@redhat.com>
Wed, 17 May 2017 09:59:20 +0000 (09:59 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 17 May 2017 09:59:20 +0000 (09:59 +0000)
commit142473df8ea4f3ff7ebd480bf827bfb795da6861
tree5c3bbb54b2f753777427ba964bc1673eb4254256
parent26092cc782a0e027601d4764caa15accefdb56d1
re PR sanitizer/80659 (-fsanitize=address evokes ICE in in gimplify_switch_expr)

PR sanitizer/80659
* c-decl.c (build_compound_literal): Set DECL_ARTIFICIAL and
DECL_IGNORED_P even for non-static compound literals.

* gcc.dg/asan/pr80659.c: New test.

From-SVN: r248143
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr80659.c [new file with mode: 0644]