summaryrefslogtreecommitdiff
path: root/gcc/extend.texi
diff options
context:
space:
mode:
authorloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-21 19:34:59 +0000
committerloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-21 19:34:59 +0000
commit96149f2d49006c580aa97b97435c0d38d60ab438 (patch)
treeb24d6d95f49348f6b12b29031f4fd1950f1e0287 /gcc/extend.texi
parentda76ffefae325a056c0125ae4cbc61dab7f32021 (diff)
downloadgcc-96149f2d49006c580aa97b97435c0d38d60ab438.tar.gz
* extend.texi (Bound member functions): Document unbound pmf
conversion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29558 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/extend.texi')
-rw-r--r--gcc/extend.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/extend.texi b/gcc/extend.texi
index 4ec451d3373..82e955993d8 100644
--- a/gcc/extend.texi
+++ b/gcc/extend.texi
@@ -3749,5 +3749,13 @@ typedef int (*fptr)(A *);
fptr p = (fptr)(a.*fp);
@end example
+For PMF constants (i.e. expressions of the form @samp{&Klasse::Member}),
+no object is needed to obtain the address of the function. They can be
+converted to function pointers directly:
+
+@example
+fptr p1 = (fptr)(&A::foo);
+@end example
+
You must specify @samp{-Wno-pmf-conversions} to use this extension.