OSDN Git Service

cp/
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 May 2009 13:00:03 +0000 (13:00 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 May 2009 13:00:03 +0000 (13:00 +0000)
commit8d82d1c83f6cfe10e2ec9a449f03b688ed68f838
tree4ea69e4744077e7a5591e81e2452d87a81f52039
parent15155321155d514260a9c126227d5d7a9028aa3b
cp/
* typeck.c (cp_build_compound_expr): Require RHS to have a known
type.
* class.c (resolve_address_of_overloaded_function): Use
OVL_CURRENT for error message.
(instantiate_type): Forbid COMPOUND_EXPRs and remove code dealing
with them.  Do not copy the node.

testsuite/
* g++.old-deja/g++.other/overload11.C: Adjust expected errors.
* g++.dg/template/overload9.C: Likewise.
* g++.dg/ext/ms-1.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147125 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/ms-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/overload9.C
gcc/testsuite/g++.old-deja/g++.other/overload11.C