OSDN Git Service

/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Nov 2009 10:05:37 +0000 (10:05 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Nov 2009 10:05:37 +0000 (10:05 +0000)
commit2f182218f86be69c5a107780410b2c303c1539f2
treedd151127c85af90b70978482f92c52bdd16cacb1
parent116f0a5ff416372139ac330ded7f2db9190dfee4
/cp
2009-11-20  Shujing Zhao  <pearly.zhao@oracle.com>

PR c++/29017
* cp-tree.h (composite_pointer_operation): New type.
(composite_pointer_type): Adjust prototype with new argument.
* typeck.c (composite_pointer_type): Accept
composite_pointer_operation as argument and emit diagnostic to be
visible to gettext and checked at compile time.
(composite_pointer_type_r): Likewise.
(common_pointer_type): Update call to composite_pointer_type.
(cp_build_binary_op): Likewise.
* call.c (build_conditional_expr): Likewise.

/testsuite
2009-11-20  Shujing Zhao  <pearly.zhao@oracle.com>

* g++.old-deja/g++.jason/rfg20.C: Make expected dg-error strings
explicit.
* g++.old-deja/g++.rfg/00321_01-.C: Likewise.
* g++.old-deja/g++.rfg/00324_02-.C: Likewise.
* g++.old-deja/g++.law/typeck1.C: Likewise.
* g++.old-deja/g++.bugs/900324_02.C: Likewise.
* g++.dg/conversion/ptrmem9.C: Likewise.
* g++.dg/expr/cond2.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154360 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/ptrmem9.C
gcc/testsuite/g++.dg/expr/cond2.C
gcc/testsuite/g++.old-deja/g++.bugs/900324_02.C
gcc/testsuite/g++.old-deja/g++.jason/rfg20.C
gcc/testsuite/g++.old-deja/g++.law/typeck1.C
gcc/testsuite/g++.old-deja/g++.rfg/00321_01-.C
gcc/testsuite/g++.old-deja/g++.rfg/00324_02-.C