aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/extend.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/extend.texi b/gcc/extend.texi
index 4ec451d..82e9559 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.