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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Nov  7 00:31:52 2019
New Revision: 277901

URL: https://gcc.gnu.org/viewcvs?rev=277901&root=gcc&view=rev
Log:
        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.

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

Reply via email to