volatile semantics
Gabriel Dos Reis
gdr@integrable-solutions.net
Mon Jul 18 12:27:00 GMT 2005
Paul Schlie <schlie@comcast.net> writes:
| > From: Paul Schlie <schlie@comcast.net>
| >> From: Gabriel Dos Reis <gdr@integrable-solutions.net>
| >> I don't understand what you mean here. Are you seriously suggesting
| >> that
| >>
| >> int main(void) {
| >> const int x = 4;
| >> *(int*)&x = 3;
| >> }
| >>
| >> is well-defined?
[...]
| - Just as if given:
|
| void foo(void) {
| int *x = 4;
?
-- Gaby
More information about the Gcc
mailing list