c++: Improve print_tree of static_assert.
authorJason Merrill <jason@redhat.com>
Mon, 11 May 2020 18:05:46 +0000 (14:05 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 11 May 2020 19:09:42 +0000 (15:09 -0400)
commite5ccab839a24a9c5ac1ddbb6e0ad1c339df3165e
tree9da88fa1a19781b4a8783ecac449bbe134bb9370
parentf3f9cc41a1a793375a9fff09bfb7a103ce259e07
c++: Improve print_tree of static_assert.

We weren't printing the condition and message of a STATIC_ASSERT.

It's also unnecessary to duplicate the code for instantiating a
STATIC_ASSERT between tsubst_expr and instantiate_class_template_1.

gcc/cp/ChangeLog
2020-05-11  Jason Merrill  <jason@redhat.com>

* pt.c (instantiate_class_template_1): Call tsubst_expr for
STATIC_ASSERT member.
* ptree.c (cxx_print_xnode): Handle STATIC_ASSERT.
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/ptree.c