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: "rogerio at rilhas dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2010 14:48:09 -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 #39 from rogerio at rilhas dot com 2010-08-13 14:48 -------
(In reply to comment #35)
> > char* p1=(char*)0x3000; // address not pointing to any "C-object in the C99
> > sense"
> > char* p2=(char*)0x4000; // address not pointing to any "C-object in the C99
> > sense"
> >
> > Can GCC users trust that p2-p1 will always return a predictable and well
> > defined integer value of 0x1000 on any platform with 16-bit or more that GCC
> > currently supports or that will come to support in the future?
> [ ] Yes
> [x] No
Thanks. The comunity will be alerted to this. I'll get back to you when your
name is in some famous place associated with this claim.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45265