diff options
author | Patrick Palka <ppalka@redhat.com> | 2023-09-19 14:38:10 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2023-09-19 14:38:10 -0400 |
commit | b9912332c5b6fc9433ee11f5488acad117868888 (patch) | |
tree | c3c35a9b8e1c534d84a292245f38938f09723205 /libcpp/include/cpplib.h | |
parent | 58ab38213b979811d314f68e3f455c28a1d44140 (diff) | |
download | gcc-b9912332c5b6fc9433ee11f5488acad117868888.zip gcc-b9912332c5b6fc9433ee11f5488acad117868888.tar.gz gcc-b9912332c5b6fc9433ee11f5488acad117868888.tar.bz2 |
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.
Diffstat (limited to 'libcpp/include/cpplib.h')
0 files changed, 0 insertions, 0 deletions