PR c++/92446 - deduction of class NTTP.
authorJason Merrill <jason@redhat.com>
Wed, 11 Dec 2019 16:48:22 +0000 (11:48 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 11 Dec 2019 16:48:22 +0000 (11:48 -0500)
commit3e7a892cc5bdeb5518888f2ca176d96cc720ec5f
treed0cd4fff424ab21c127b182c3a10fdf35968c0f9
parent0a22f996399c968efe9bfec96bd9f87ee537be12
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.

From-SVN: r279228
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp2a/nontype-class26.C [new file with mode: 0644]