https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88216
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Thu Dec 13 20:47:32 2018 New Revision: 267108 URL: https://gcc.gnu.org/viewcvs?rev=267108&root=gcc&view=rev Log: PR c++/88216 - ICE with class type in non-type template parameter. * mangle.c (write_expression): Handle TARGET_EXPR and VIEW_CONVERT_EXPR. * pt.c (convert_nontype_argument): Don't call get_template_parm_object for value-dependent expressions. * g++.dg/cpp2a/nontype-class9.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp2a/nontype-class9.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/mangle.c trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog