This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Aug 2010 16:17:15 -0000
- Subject: [Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters
- References: <bug-45265-19547@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from redi at gcc dot gnu dot org 2010-08-12 16:17 -------
(In reply to comment #15)
>
> char* p1=random_address();
> char* p2=another_random_address();
>
> p1-p2 is always well defined, no matter to which objects they point to.
No. No it isn't. It really isn't.
(In reply to comment #6)
>
> Pretty pretty please: before you give out such wrong and embarassing answers
> please take the time to learn the standards and also take the time to learn how
> to read.
Maybe you should practice what you preach.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45265