This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/38720] _Relative_pointer_impl invokes undefined behavior
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jan 2009 14:35:08 -0000
- Subject: [Bug libstdc++/38720] _Relative_pointer_impl invokes undefined behavior
- References: <bug-38720-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rguenther at suse dot de 2009-01-04 14:35 -------
Subject: Re: _Relative_pointer_impl invokes undefined
behavior
On Sun, 4 Jan 2009, paolo dot carlini at oracle dot com wrote:
> ------- Comment #2 from paolo dot carlini at oracle dot com 2009-01-04 14:03 -------
> Richard, this is just an (experimental) extension facility, we can break the
> binary interface, return to our decisions, etc, no problem. Thus, just commit
> whatever fix you are able to quickly figure out (like the attached) and easily
> test. Thanks in advance. PS. watch overlong lines.
Do you have an idea what best to use to access uintptr_t? unsigned long
will be wrong for example on mingw64 (it's 32bit while pointers are
64bit there)?
Thanks,
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38720