diff options
author | Jason Merrill <jason@redhat.com> | 2021-04-02 05:45:02 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-04-05 08:25:26 -0400 |
commit | a44a753a35542f86e82e198595ce3553f6d718f6 (patch) | |
tree | f51f1d34591c29e5b8119d594c2566ee786d2bf3 /gcc/tree-ssa-dse.c | |
parent | 76a7e7e706ac4c01cead3c6514322aaad88f9a63 (diff) | |
download | gcc-a44a753a35542f86e82e198595ce3553f6d718f6.zip gcc-a44a753a35542f86e82e198595ce3553f6d718f6.tar.gz gcc-a44a753a35542f86e82e198595ce3553f6d718f6.tar.bz2 |
c++: Fix print-tree for TEMPLATE_DECL
The if allows TEMPLATE_DECL, but then checking DECL_MODULE_IMPORT_P crashes
on TEMPLATE_DECL. Fixed by stripping TEMPLATE_DECL first.
gcc/cp/ChangeLog:
* ptree.c (cxx_print_decl): Check DECL_MODULE_IMPORT_P on
template result.
Diffstat (limited to 'gcc/tree-ssa-dse.c')
0 files changed, 0 insertions, 0 deletions