Le 23.09.2007, à 10:22:15, Falk Hueffner a écrit:
> "Phil Endecott" <[EMAIL PROTECTED]> writes:
>
> >> I think I found a bug in gcc-4.2
> >
> >> int i, j;
> >> printf("%d %d\n", j, (void *)(j));
> >
> > This looks like a strict-aliasing issue to me; you're casting from an
> > int to a void*, which
"Phil Endecott" <[EMAIL PROTECTED]> writes:
>> I think I found a bug in gcc-4.2
>
>> int i, j;
>> printf("%d %d\n", j, (void *)(j));
>
> This looks like a strict-aliasing issue to me; you're casting from an
> int to a void*, which is undefined.
Casting from int to void* is not undefined, but impl
I think I found a bug in gcc-4.2
int i, j;
printf("%d %d\n", j, (void *)(j));
This looks like a strict-aliasing issue to me; you're casting from an
int to a void*, which is undefined. Did you get any warnings? (Did
you compile with warnings enabled? -Wstrict-aliasing?) Investigate the
-
3 matches
Mail list logo