/cp
commite9eaac6ce8685130353baa69a38c683bc3505b49
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Apr 2018 17:53:05 +0000 (3 17:53 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Apr 2018 17:53:05 +0000 (3 17:53 +0000)
tree66afd0fff1476271b4724b3c274dc15d0101b79a
parent8435045bd0f56795b5829509d3efaf3cb8102896
/cp
2018-04-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84768
* pt.c (rewrite_template_parm): If the first argument is
error_mark_node return it immediately.
(build_deduction_guide): Check the return value of the
latter for error_mark_node.
(do_class_deduction): Check the return value of the latter.

/testsuite
2018-04-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84768
* g++.dg/cpp1z/class-deduction52.C: New.

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