https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85252
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Jun 22 21:08:00 2018 New Revision: 261950 URL: https://gcc.gnu.org/viewcvs?rev=261950&root=gcc&view=rev Log: Backported from mainline 2018-04-06 Jakub Jelinek <ja...@redhat.com> PR debug/85252 * dwarf2out.c (rtl_for_decl_init): For STRING_CST initializer only build CONST_STRING if TYPE_MAX_VALUE is non-NULL and is INTEGER_CST. * gcc.dg/debug/pr85252.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/debug/pr85252.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/dwarf2out.c branches/gcc-7-branch/gcc/testsuite/ChangeLog