--- Comment #7 from manu at gcc dot gnu dot org 2010-04-09 07:53 ---
FIXED in GCC 4.6
--
manu at gcc dot gnu dot org changed:
What|Removed |Added
Status|ASSIG
--- Comment #6 from manu at gcc dot gnu dot org 2010-04-09 07:50 ---
Subject: Bug 28584
Author: manu
Date: Fri Apr 9 07:49:41 2010
New Revision: 158150
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158150
Log:
2010-04-09 Manuel López-Ibáñez
PR c++/28584
--- Comment #5 from manu at gcc dot gnu dot org 2010-02-22 19:49 ---
Approved for GCC 4.6
http://gcc.gnu.org/ml/gcc-patches/2010-02/msg00893.html
--
manu at gcc dot gnu dot org changed:
What|Removed |Added
-
--- Comment #4 from manu at gcc dot gnu dot org 2010-02-22 19:04 ---
Patch http://gcc.gnu.org/ml/gcc-patches/2010-02/msg00891.html
--
manu at gcc dot gnu dot org changed:
What|Removed |Added
-
--- Comment #3 from jason at redhat dot com 2010-02-20 20:15 ---
Subject: Re: Cast to pointer from integer of different size
On 02/20/2010 01:19 PM, manu at gcc dot gnu dot org wrote:
> Jason, do we want this?
Sure.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28584
--- Comment #2 from manu at gcc dot gnu dot org 2010-02-20 18:19 ---
Jason, do we want this?
It seems trivial:
Index: gcc/cp/typeck.c
===
--- gcc/cp/typeck.c (revision 156923)
+++ gcc/cp/typeck.c (working copy)
@@
--- Comment #1 from redi at gcc dot gnu dot org 2009-12-08 20:32 ---
reduced:
void f() {
unsigned short i = 0;
void* p = (void*)i;
}
this warns in 32-bit or 64-bit mode using the C compiler, and is controlled by
this option that g++ doesn't support:
-Wno-int-to-pointer-cast (C and O