r141233 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...
manu@gcc.gnu.org
manu@gcc.gnu.org
Sun Oct 19 22:53:00 GMT 2008
Author: manu
Date: Sun Oct 19 22:53:01 2008
New Revision: 141233
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141233
Log:
2008-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/37004
cp/
* typeck.c (cp_common_type): New. The same as
type_after_usual_arithmetic_conversions but without promotions.
(type_after_usual_arithmetic_conversions): Do the promotions and
call cp_common_type.
(common_type): Make it behave like the C version of this
function. Do not handle pointer types.
(common_pointer_type): Move handling of pointer types from
common_type to here.
(cp_build_binary_op): Use common_pointer_type instead of
common_type in call to pointer_diff.
Use cp_common_type instead of common_type.
* cp-tree.h (common_pointer_type): Declare.
testsuite/
* g++.dg/warn/Wconversion-pr34389.C: Remove XFAIL.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/warn/Wconversion-pr34389.C
More information about the Gcc-cvs
mailing list