]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: fix cxx_print_type's template-info dumping
authorPatrick Palka <ppalka@redhat.com>
Tue, 19 Sep 2023 18:38:10 +0000 (14:38 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 19 Sep 2023 18:38:10 +0000 (14:38 -0400)
commitb9912332c5b6fc9433ee11f5488acad117868888
treec3c35a9b8e1c534d84a292245f38938f09723205
parent58ab38213b979811d314f68e3f455c28a1d44140
c++: fix cxx_print_type's template-info dumping

Unlike DECL_TEMPLATE_INFO which is stored in DECL_LANG_SPECIFIC,
TYPE_TEMPLATE_INFO isn't stored in TYPE_LANG_SPECIFIC, so we don't
need to check for both in cxx_print_type.  This fixes dumping the
template-info of ENUMERAL_TYPE and BOUND_TEMPLATE_TEMPLATE_PARM,
which seem to never have TYPE_LANG_SPECIFIC.

gcc/cp/ChangeLog:

* ptree.cc (cxx_print_type): Remove TYPE_LANG_SPECIFIC
test guarding TYPE_TEMPLATE_INFO.
gcc/cp/ptree.cc