]> gcc.gnu.org Git - gcc.git/commit
c++: improve comment
authorJason Merrill <jason@redhat.com>
Fri, 20 Oct 2023 16:22:44 +0000 (12:22 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 25 Oct 2023 15:02:31 +0000 (11:02 -0400)
commit406709b1c7b134a7a05445837f406e98c04f76f0
treed5b4ea97c460c0f7e4d1fa4faf69c41bb97b0388
parent678e6c328c77db383431751bcfcf867b02369bd6
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.
gcc/cp/cp-gimplify.cc
gcc/cp/cp-tree.def
This page took 0.050817 seconds and 5 git commands to generate.