PR c++/88216 - ICE with class type in non-type template parameter.
commit1ed9e78d58cbffe35c88dcf13b34b50cc2c5483a
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Dec 2018 20:47:32 +0000 (13 20:47 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Dec 2018 20:47:32 +0000 (13 20:47 +0000)
tree0f98a2372671ce74db10afc5a1628accc70aa17e
parentb15b89d09ec824a42c897851d9efe2405e92fb69
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267108 138bc75d-0d04-0410-961f-82ee72b054a4
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]