PR c++/92150 - partial specialization with class NTTP.
authorJason Merrill <jason@redhat.com>
Thu, 7 Nov 2019 00:31:52 +0000 (19:31 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 7 Nov 2019 00:31:52 +0000 (19:31 -0500)
commit951c6f3dd975d795adc409da1a1477b5229199ae
treee2b9d02d58c552313d9ffaec0ca00acc474cb106
parent81a34a6b68184436726489b81d44267c40f6fbe7
PR c++/92150 - partial specialization with class NTTP.

Here unify was getting confused by the VIEW_CONVERT_EXPR we add in
finish_id_expression_1 to make class NTTP const when they're used in an
expression.

Tested x86_64-pc-linux-gnu, applying to trunk.

* pt.c (unify): Handle VIEW_CONVERT_EXPR.

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