PR c++/70869
commitbcc4d868d943d77d0373989a040933c4b3cda16f
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jul 2016 18:45:43 +0000 (7 18:45 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jul 2016 18:45:43 +0000 (7 18:45 +0000)
tree2921d133aa939d48c09f7060d04886a291f93d59
parentb39328b2a5e45c8747310a87b3650f70e1fb54ef
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238124 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr70869.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr71054.C [new file with mode: 0644]