]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/85076 (ICE with invalid template used as lambda argument)
authorJakub Jelinek <jakub@redhat.com>
Mon, 25 Jun 2018 17:40:52 +0000 (19:40 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 25 Jun 2018 17:40:52 +0000 (19:40 +0200)
commitee6322c8c7f65ca85e1235608ce1ba6bbfd18bd7
tree3f095dfc811b1228f9b81c267026c0b859a61e46
parent2a775eeb61c4fcee6859087625d0277fadc3baa9
backport: re PR c++/85076 (ICE with invalid template used as lambda argument)

Backported from mainline
2018-03-27  Jakub Jelinek  <jakub@redhat.com>

PR c++/85076
* tree.c (cp_build_reference_type): If to_type is error_mark_node,
return it right away.

* g++.dg/cpp1y/pr85076.C: New test.

From-SVN: r262087
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr85076.C [new file with mode: 0644]