diff options
author | Mark Mitchell <mark@codesourcery.com> | 2001-04-16 05:51:38 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2001-04-16 05:51:38 +0000 |
commit | 24272dc03779501835117ee8782f4888b4d6a3d4 (patch) | |
tree | bda6d31238e203eb31d8661c77632d5151ff1746 /gcc/cp/cp-tree.h | |
parent | 1b4a93f79b44e6cffbd43cbdfa0f649b9b43158a (diff) | |
download | gcc-24272dc03779501835117ee8782f4888b4d6a3d4.zip gcc-24272dc03779501835117ee8782f4888b4d6a3d4.tar.gz gcc-24272dc03779501835117ee8782f4888b4d6a3d4.tar.bz2 |
cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.
* cp-tree.h (TYPE_PTRMEM_CLASS_TYPE): Improve documentation.
* mangle.c (write_pointer_to_member_type): Fix mangling of
pointers to cv-qualified member function types.
From-SVN: r41373
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r-- | gcc/cp/cp-tree.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index de82fa6..a30623a 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -2691,7 +2691,11 @@ extern int flag_new_for_scope; /* Returns the pfn field from a TYPE_PTRMEMFUNC_P. */ #define PFN_FROM_PTRMEMFUNC(NODE) pfn_from_ptrmemfunc ((NODE)) -/* For a pointer-to-member type of the form `T X::*', this is `X'. */ +/* For a pointer-to-member type of the form `T X::*', this is `X'. + For a type like `void (X::*)() const', this type is `X', not `const + X'. To get at the `const X' you have to look at the + TYPE_PTRMEM_POINTED_TO_TYPE; there, the first parameter will have + type `const X*'. */ #define TYPE_PTRMEM_CLASS_TYPE(NODE) \ (TYPE_PTRMEM_P ((NODE)) \ ? TYPE_OFFSET_BASETYPE (TREE_TYPE ((NODE))) \ |