[Bug c++/92446] [C++20] template argument deduction fails for custom non-type parameters

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 11 16:49:00 GMT 2019


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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Dec 11 16:48:22 2019
New Revision: 279228

URL: https://gcc.gnu.org/viewcvs?rev=279228&root=gcc&view=rev
Log:
        PR c++/92446 - deduction of class NTTP.

Another place we need to look through the VIEW_CONVERT_EXPR we add to make a
use of a class NTTP have const type.

        * pt.c (deducible_expression): Look through VIEW_CONVERT_EXPR.

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


More information about the Gcc-bugs mailing list