re PR c++/36334 (typedef to function type leads to problems)
authorJason Merrill <jason@redhat.com>
Thu, 15 Jan 2009 18:14:32 +0000 (13:14 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 15 Jan 2009 18:14:32 +0000 (13:14 -0500)
commit4af9e878d91689da977b1e31fbb3248b5ad677b9
tree813a681559b4e930c5f836452d80f24baae41519
parentf1253e7e69d20a489bb734ea66d0702e9eaa4b76
re PR c++/36334 (typedef to function type leads to problems)

        PR c++/36334
        PR c++/37646
        * tree.c (lvalue_p_1): Handle BASELINK.  A COMPONENT_REF to
        a function isn't necessarily an lvalue. Take tree, not const_tree.
        (lvalue_p, real_lvalue_p): Take tree, not const_tree.
        * typeck.c (lvalue_or_else): Likewise.
        * cp-tree.h: Adjust prototypes.

From-SVN: r143404
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/memfn1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/conversion/memfn2.C [new file with mode: 0644]