[Bug c/22278] gcc -O2 discards cast to volatile
gdr at integrable-solutions dot net
gcc-bugzilla@gcc.gnu.org
Sat Jul 2 23:54:00 GMT 2005
------- Additional Comments From gdr at integrable-solutions dot net 2005-07-02 23:54 -------
Subject: Re: gcc -O2 discards cast to volatile
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| > For all useful purposes, it helps remembering that GCC is not an
| > academic exercise in C standard reading.
| Ok, then all of your comments about extensions to C++ should be
| > thrown out the window
No, you just chose to selectively misread statements. That is
unfortunate, but we have to live with it.
| since I know you are against extensions.
You know nothing about me, so lease stick to GCC.
| If someone is going to program in C or C++, they should know they are
| going to get into trouble when programming and get something
| different than what they expect and should go read the standard to
| double check if they got it right or the compiler is correct.
yes, but that is orthogonal to the issue at hand.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22278
More information about the Gcc-bugs
mailing list