re PR c++/78649 (ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error...
authorJakub Jelinek <jakub@redhat.com>
Fri, 2 Dec 2016 21:23:22 +0000 (22:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 2 Dec 2016 21:23:22 +0000 (22:23 +0100)
commita3f7c896a55c33e369f9bbb210f4b43a345beabe
tree8c04b12d045e1a25891550c03c4dab0edcb8e91b
parent81cff75ff9178e9344e1f4c8935ffd451f66632f
re PR c++/78649 (ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in build_value_init_noctor, at cp/init.c:380))

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.

From-SVN: r243204
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr78649.C [new file with mode: 0644]