]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/78649 (ICE on invalid C++ code on x86_64-linux-gnu (internal...
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 May 2017 07:46:27 +0000 (09:46 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 May 2017 07:46:27 +0000 (09:46 +0200)
commit13e3a0f5445434df86658735465148777b91a6bc
treeb0735705d6409f8fd66750d36ecf13211a13e33a
parenta0f9462b9e6091791db6ee7c418a33759a03602e
backport: 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))

Backported from mainline
2016-12-02  Jakub Jelinek  <jakub@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.

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