https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78649
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Dec 7 23:01:24 2016 New Revision: 243414 URL: https://gcc.gnu.org/viewcvs?rev=243414&root=gcc&view=rev Log: Backported from mainline 2016-12-02 Jakub Jelinek <ja...@redhat.com> PR c++/78649 * pt.c (tsubst_init): Don't call build_value_init if decl's type is error_mark_node. * g++.dg/cpp0x/pr78649.C: New test. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/pr78649.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/pt.c branches/gcc-6-branch/gcc/testsuite/ChangeLog