https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80659
--- Comment #11 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Fri May 26 11:17:34 2017 New Revision: 248491 URL: https://gcc.gnu.org/viewcvs?rev=248491&root=gcc&view=rev Log: 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. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/asan/pr80659.c Modified: branches/gcc-7-branch/gcc/c/ChangeLog branches/gcc-7-branch/gcc/c/c-decl.c branches/gcc-7-branch/gcc/testsuite/ChangeLog