PR sanitizer/80659 46/190546/3
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 May 2017 09:59:20 +0000 (09:59 +0000)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Thu, 18 Oct 2018 13:20:10 +0000 (16:20 +0300)
commite2cd7f1b65dcf4eae695360c87fd4dd6159d54ca
treea68d4702a66d5eb110e823cf518655583c00f0cd
parent037f5c0adf25b4487ca4c0621f26fb6171b40f07
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.

Change-Id: I7565aba65e49836947e0faf2eb5ea668b46a0d87
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248143138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
testsuite/gcc.dg/asan/pr80659.c [new file with mode: 0644]