https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70869
--- Comment #19 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Jul 19 08:39:12 2016 New Revision: 238457 URL: https://gcc.gnu.org/viewcvs?rev=238457&root=gcc&view=rev Log: Backported from mainline 2016-07-07 Jakub Jelinek <ja...@redhat.com> Kai Tietz <ktiet...@googlemail.com> PR c++/70869 PR c++/71054 * cp-gimplify.c (cp_genericize_r): For DECL_EXPR for non-static artificial vars, genericize their initializers. * g++.dg/cpp0x/pr70869.C: New test. * g++.dg/cpp0x/pr71054.C: New test. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/pr70869.C branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/pr71054.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/cp-gimplify.c branches/gcc-6-branch/gcc/testsuite/ChangeLog