re PR c++/29016 (tree check: expected class 'expression', have 'exceptional' (baselin...
authorMark Mitchell <mark@codesourcery.com>
Thu, 21 Sep 2006 22:18:54 +0000 (22:18 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 21 Sep 2006 22:18:54 +0000 (22:18 +0000)
commitb76d34e959674bb91653ca0fc86cdf9a4dabf075
treedbd8c52e4a1d7674d3b117a9267ce96b88f30e02
parent2801ed8e2fc91d7b924e76b4f5505daee09381a5
re PR c++/29016 (tree check: expected class 'expression', have 'exceptional' (baselink) in get_base_var, at ipa-utils.c:224)

PR c++/29016
* typeck.c (build_unary_op): Don't form an ADDR_EXPR around a
BASELINK.
PR c++/29016
* g++.dg/init/ptrfn1.C: New test.

From-SVN: r117123
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/ptrfn1.C [new file with mode: 0644]