This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r146646 - in /trunk/gcc: cp/call.c cp/cvt.c cp/...


Author: dodji
Date: Thu Apr 23 11:15:33 2009
New Revision: 146646

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146646
Log:
    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.


Added:
    trunk/gcc/testsuite/g++.dg/expr/bound-mem-fun.C
Modified:
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cvt.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/typeck.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]