PR c++/78649
commit81c0f94ae9e857743325821ad45e7053e3a122c7
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Dec 2016 21:23:22 +0000 (2 21:23 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Dec 2016 21:23:22 +0000 (2 21:23 +0000)
tree8c04b12d045e1a25891550c03c4dab0edcb8e91b
parent27c7b6089c1d23125bada0990436fc2ea157e47c
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.

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