]> gcc.gnu.org Git - gcc.git/commit
c++: Set type on dependent ARROW_EXPR
authorJason Merrill <jason@redhat.com>
Fri, 27 Aug 2021 14:00:49 +0000 (10:00 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 27 Aug 2021 21:37:58 +0000 (17:37 -0400)
commit771fd4aef999903cb928bb89f730c61a8af6e4f8
tree30c93d1fa1770e05591f70f3c3d36ab037432953
parentee914ec4f811243ad72aceea4748687c74f38bc6
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.
gcc/cp/typeck2.c
This page took 0.054912 seconds and 5 git commands to generate.