diff options
author | Patrick Palka <ppalka@redhat.com> | 2023-08-11 12:17:24 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2023-08-11 12:17:24 -0400 |
commit | a4238f6db879abc048282d2d26442e68dc9427ea (patch) | |
tree | 74034741cfa24973f14fde602a27d20d2107ca45 /libstdc++-v3/include | |
parent | 834d1422c2e056f483542f1aff2cfc211bfcc748 (diff) | |
download | gcc-a4238f6db879abc048282d2d26442e68dc9427ea.zip gcc-a4238f6db879abc048282d2d26442e68dc9427ea.tar.gz gcc-a4238f6db879abc048282d2d26442e68dc9427ea.tar.bz2 |
tree-pretty-print: handle COMPONENT_REF with non-decl RHS
In the C++ front end, a COMPONENT_REF's second operand isn't always a
decl (at least at template parse time). This patch makes the generic
pretty printer not ICE when printing such a COMPONENT_REF.
gcc/ChangeLog:
* tree-pretty-print.cc (dump_generic_node) <case COMPONENT_REF>:
Don't call component_ref_field_offset if the RHS isn't a decl.
Diffstat (limited to 'libstdc++-v3/include')
0 files changed, 0 insertions, 0 deletions