diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-10-19 22:53:01 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-10-19 22:53:01 +0000 |
commit | 98f2f3a24f2706623b054a6f9b38cfd706f20ed4 (patch) | |
tree | efc7e715925fd1cb536642887f046421f2e8cfc7 /libjava/classpath/java/util/Stack.java | |
parent | 641afcff1d00be2cabd95d589a66a5d87ed1edda (diff) | |
download | gcc-98f2f3a24f2706623b054a6f9b38cfd706f20ed4.zip gcc-98f2f3a24f2706623b054a6f9b38cfd706f20ed4.tar.gz gcc-98f2f3a24f2706623b054a6f9b38cfd706f20ed4.tar.bz2 |
re PR c++/37004 ([C++ only] Wconversion warns for short y = 0x7fff; short z = (short) x & y;)
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.
From-SVN: r141233
Diffstat (limited to 'libjava/classpath/java/util/Stack.java')
0 files changed, 0 insertions, 0 deletions