lkml.org 
[lkml]   [2003]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: GCC 3.4 Heads-up
Linus Torvalds wrote:
>
> Similarly, what the _hell_ does the gcc extension
>
> int a;
>
> (char)a += b;
>
> really mean? The whole extension is just braindamaged, again probably
> because there were non-C people involved at some point. It's very much
> against the C philosophy. I bet 99% of the people on this list have no
> clue what the exact semantics of the above are.
>

Oh, right. When I heard "cast as lvalue" I envisioned:

*(char *)foo = bar;

... being a warning, but that's not a cast, even though the pointer is.

-hpa



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.097 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site