diff options
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r-- | gcc/cp/expr.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index 3dc8eae..22dd075 100644 --- a/gcc/cp/expr.c +++ b/gcc/cp/expr.c @@ -188,10 +188,16 @@ cplus_expand_expr (exp, target, tmode, modifier) } else { - /* We don't yet handle pointer-to-member functions this - way. */ - my_friendly_abort (0); - return 0; + tree delta; + tree idx; + tree pfn; + tree delta2; + + expand_ptrmemfunc_cst (exp, &delta, &idx, &pfn, &delta2); + + return expand_expr (build_ptrmemfunc1 (type, delta, idx, + pfn, delta2), + target, tmode, modifier); } } |