[Bug libstdc++/38720] _Relative_pointer_impl invokes undefined behavior

2009-01-04 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2009-01-04 19:52 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug libstdc++/38720] _Relative_pointer_impl invokes undefined behavior

2009-01-04 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2009-01-04 19:51 --- Subject: Bug 38720 Author: rguenth Date: Sun Jan 4 19:51:18 2009 New Revision: 143058 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143058 Log: 2009-01-04 Richard Guenther PR libstdc++/38720

[Bug libstdc++/38720] _Relative_pointer_impl invokes undefined behavior

2009-01-04 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2009-01-04 14:45 --- Hmm, for now I think you can include and do something like: typedef __gnu_cxx::__conditional_type<(sizeof(unsigned long) >= sizeof(void*)), unsigned long, unsigned long long>::__type _UIntPtrType

[Bug libstdc++/38720] _Relative_pointer_impl invokes undefined behavior

2009-01-04 Thread rguenther at suse dot de
--- 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 > --- >

[Bug libstdc++/38720] _Relative_pointer_impl invokes undefined behavior

2009-01-04 Thread paolo dot carlini at oracle dot com
--- 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 t

[Bug libstdc++/38720] _Relative_pointer_impl invokes undefined behavior

2009-01-04 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-01-04 13:22 --- Created an attachment (id=17029) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17029&action=view) patch to show the idea prototype patch (unfortunately there's no std::uintptr_t, so I used unsigned long for te