PR c++/88216 - ICE with class type in non-type template parameter.
authorMarek Polacek <polacek@redhat.com>
Thu, 13 Dec 2018 20:47:32 +0000 (20:47 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 13 Dec 2018 20:47:32 +0000 (20:47 +0000)
commitb46e1a69975d64ad436ff1c928e008105b2b2a8d
tree0f98a2372671ce74db10afc5a1628accc70aa17e
parent2b462958e2db15dc6f55ed361d47cdbc62d64ea0
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.

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