]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/class.c
typeck.c (cp_build_compound_expr): Require RHS to have a known type.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 5 May 2009 13:00:03 +0000 (13:00 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 5 May 2009 13:00:03 +0000 (13:00 +0000)
commit95e207682899fcbf2bcfc43dd2926a6e866e884a
tree4ea69e4744077e7a5591e81e2452d87a81f52039
parent66ba9b0b152bf853249f594655c0791189b10fc6
typeck.c (cp_build_compound_expr): Require RHS to have a known type.

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.

From-SVN: r147125
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