https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84768

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Tue Apr  3 17:53:05 2018
New Revision: 259049

URL: https://gcc.gnu.org/viewcvs?rev=259049&root=gcc&view=rev
Log:
/cp
2018-04-03  Paolo Carlini  <paolo.carl...@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.carl...@oracle.com>

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

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction52.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to