gcc/cp/ChangeLog:
commita7cc154907a72ee4472376e7dc70613f1cc1a6b1
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Apr 2009 11:15:33 +0000 (23 11:15 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Apr 2009 11:15:33 +0000 (23 11:15 +0000)
tree9cf794ed9aa81713d4ecea5e289646e8597a6fcf
parent211df5132f9d9a43019cbaeae9a213f1d79a664a
gcc/cp/ChangeLog:
     PR c++/38228
     * pt.c (unify): Do not allow the result of a template argument
     deduction to be a METHOD_TYPE.
     * cvt.c (cp_convert): Report a meaningful error for non-valid use
     of pointer to member functions during conversions.
     * call.c (build_new_op): Report a meaningful error for non-valid
     use of pointer to member functions in binary expressions.
     * typeck.c (invalid_nonstatic_memfn_p): Do not crash when EXPR is
     NULL;

    gcc/testsuite/ChangeLog:
     PR c++/38228
     * g++.dg/expr/bound-mem-fun.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146646 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/call.c
gcc/cp/cvt.c
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/expr/bound-mem-fun.C [new file with mode: 0644]