diff options
author | Jason Merrill <jason@redhat.com> | 2023-10-20 12:22:44 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2023-10-25 11:02:31 -0400 |
commit | 406709b1c7b134a7a05445837f406e98c04f76f0 (patch) | |
tree | d5b4ea97c460c0f7e4d1fa4faf69c41bb97b0388 /gcc/expr.cc | |
parent | 678e6c328c77db383431751bcfcf867b02369bd6 (diff) | |
download | gcc-406709b1c7b134a7a05445837f406e98c04f76f0.zip gcc-406709b1c7b134a7a05445837f406e98c04f76f0.tar.gz gcc-406709b1c7b134a7a05445837f406e98c04f76f0.tar.bz2 |
c++: improve comment
It's incorrect to say that the address of an OFFSET_REF is always a
pointer-to-member; if it represents an overload set with both static and
non-static member functions that ends up resolving to a static one, the
address is a normal pointer. And let's go ahead and mention explicit object
member functions even though the patch hasn't landed yet.
gcc/cp/ChangeLog:
* cp-tree.def: Improve OFFSET_REF comment.
* cp-gimplify.cc (cp_fold_immediate): Add to comment.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions