[Bug c++/86932] [8 Regression] Empty non-type template parameter pack not considered for SFINAE.

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 5 02:51:00 GMT 2019


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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Apr  5 02:50:52 2019
New Revision: 270160

URL: https://gcc.gnu.org/viewcvs?rev=270160&root=gcc&view=rev
Log:
        PR c++/89966 - error with non-type auto tparm.

My patch for PR 86932 broke this testcase by passing tf_partial to
coerce_template_template_parms, which prevented do_auto_deduction from
actually replacing the auto.

        * pt.c (do_auto_deduction): Clear tf_partial.

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


More information about the Gcc-bugs mailing list