]> gcc.gnu.org Git - gcc.git/commit
re PR c++/85076 (ICE with invalid template used as lambda argument)
authorJakub Jelinek <jakub@redhat.com>
Tue, 27 Mar 2018 19:58:30 +0000 (21:58 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 27 Mar 2018 19:58:30 +0000 (21:58 +0200)
commitdc442cef60468a813ab2abee691280089a5e5b7f
treec6481074b4fa535349b523ac960bba2e14aadde4
parentef22816c3b3f580addc60df340abda46cc6ba01c
re PR c++/85076 (ICE with invalid template used as lambda argument)

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: r258901
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr85076.C [new file with mode: 0644]
This page took 0.054854 seconds and 5 git commands to generate.