diff options
author | Jason Merrill <jason@redhat.com> | 2021-08-27 10:00:49 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-08-27 17:37:58 -0400 |
commit | 771fd4aef999903cb928bb89f730c61a8af6e4f8 (patch) | |
tree | 30c93d1fa1770e05591f70f3c3d36ab037432953 /gcc/tree-inline.c | |
parent | ee914ec4f811243ad72aceea4748687c74f38bc6 (diff) | |
download | gcc-771fd4aef999903cb928bb89f730c61a8af6e4f8.zip gcc-771fd4aef999903cb928bb89f730c61a8af6e4f8.tar.gz gcc-771fd4aef999903cb928bb89f730c61a8af6e4f8.tar.bz2 |
c++: Set type on dependent ARROW_EXPR
Even if the operand of -> has dependent type, if it's a pointer we know
that the result will be the target type of that pointer. This should avoid
some unnecessary TYPEOF_EXPR when looking up a name after ->.
gcc/cp/ChangeLog:
* typeck2.c (build_x_arrow): Do set TREE_TYPE when operand is
a dependent pointer.
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions