* [Bug libstdc++/46207] std::atomic<const T *>::store(...) fails to compile
2010-10-28 5:35 [Bug libstdc++/46207] New: std::atomic<const T *>::store(...) fails to compile miles at gnu dot org
@ 2010-10-28 9:32 ` paolo.carlini at oracle dot com
2010-10-28 9:50 ` paolo.carlini at oracle dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-10-28 9:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46207
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2010.10.28 09:32:14
AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot
|gnu.org |com
Ever Confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-10-28 09:32:14 UTC ---
Seems just matter of adding a cast.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/46207] std::atomic<const T *>::store(...) fails to compile
2010-10-28 5:35 [Bug libstdc++/46207] New: std::atomic<const T *>::store(...) fails to compile miles at gnu dot org
2010-10-28 9:32 ` [Bug libstdc++/46207] " paolo.carlini at oracle dot com
@ 2010-10-28 9:50 ` paolo.carlini at oracle dot com
2010-10-28 9:54 ` redi at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-10-28 9:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46207
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-10-28 09:50:37 UTC ---
Note, we have a much more general issue with atomic<_Tp*> vs atomic_address:
everywhere we are assuming _Tp is not cv-qualified and this is not going to
work with atomic_address, which takes plain void*.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/46207] std::atomic<const T *>::store(...) fails to compile
2010-10-28 5:35 [Bug libstdc++/46207] New: std::atomic<const T *>::store(...) fails to compile miles at gnu dot org
2010-10-28 9:32 ` [Bug libstdc++/46207] " paolo.carlini at oracle dot com
2010-10-28 9:50 ` paolo.carlini at oracle dot com
@ 2010-10-28 9:54 ` redi at gcc dot gnu.org
2010-10-28 9:59 ` paolo.carlini at oracle dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2010-10-28 9:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46207
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-10-28 09:54:24 UTC ---
http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#879
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/46207] std::atomic<const T *>::store(...) fails to compile
2010-10-28 5:35 [Bug libstdc++/46207] New: std::atomic<const T *>::store(...) fails to compile miles at gnu dot org
` (2 preceding siblings ...)
2010-10-28 9:54 ` redi at gcc dot gnu.org
@ 2010-10-28 9:59 ` paolo.carlini at oracle dot com
2010-10-28 10:14 ` paolo.carlini at oracle dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-10-28 9:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46207
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-10-28 09:59:43 UTC ---
Thanks Jon, much better implementing it ;)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/46207] std::atomic<const T *>::store(...) fails to compile
2010-10-28 5:35 [Bug libstdc++/46207] New: std::atomic<const T *>::store(...) fails to compile miles at gnu dot org
` (3 preceding siblings ...)
2010-10-28 9:59 ` paolo.carlini at oracle dot com
@ 2010-10-28 10:14 ` paolo.carlini at oracle dot com
2010-10-28 11:11 ` redi at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-10-28 10:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46207
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
CC| |bkoz at redhat dot com
AssignedTo|paolo.carlini at oracle dot |unassigned at gcc dot
|com |gnu.org
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-10-28 10:14:02 UTC ---
It's a mess: why n3126 doesn't have the store, atomic_store, and
atomic_exchange tweaks, to name a few? Also, the compare_exchange_* are now
overloaded, not just changed to take a const void*. And what about the
atomic_address constructor from a void*? I don't think I'm going to work on
this righ now... Adding Benjamin in CC, maybe he followed details of this..
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/46207] std::atomic<const T *>::store(...) fails to compile
2010-10-28 5:35 [Bug libstdc++/46207] New: std::atomic<const T *>::store(...) fails to compile miles at gnu dot org
` (4 preceding siblings ...)
2010-10-28 10:14 ` paolo.carlini at oracle dot com
@ 2010-10-28 11:11 ` redi at gcc dot gnu.org
2010-10-29 11:09 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2010-10-28 11:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46207
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-10-28 11:11:09 UTC ---
I haven't followed it, but it wouldn't surprise me if a few issues were closed
as NAD Editorial without actually being fixed
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/46207] std::atomic<const T *>::store(...) fails to compile
2010-10-28 5:35 [Bug libstdc++/46207] New: std::atomic<const T *>::store(...) fails to compile miles at gnu dot org
` (5 preceding siblings ...)
2010-10-28 11:11 ` redi at gcc dot gnu.org
@ 2010-10-29 11:09 ` paolo.carlini at oracle dot com
2010-10-29 22:57 ` bkoz at gcc dot gnu.org
2011-02-17 1:55 ` paolo.carlini at oracle dot com
8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-10-29 11:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46207
--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-10-29 11:09:25 UTC ---
So this is part of
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3164.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/46207] std::atomic<const T *>::store(...) fails to compile
2010-10-28 5:35 [Bug libstdc++/46207] New: std::atomic<const T *>::store(...) fails to compile miles at gnu dot org
` (6 preceding siblings ...)
2010-10-29 11:09 ` paolo.carlini at oracle dot com
@ 2010-10-29 22:57 ` bkoz at gcc dot gnu.org
2011-02-17 1:55 ` paolo.carlini at oracle dot com
8 siblings, 0 replies; 10+ messages in thread
From: bkoz at gcc dot gnu.org @ 2010-10-29 22:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46207
Benjamin Kosnik <bkoz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bkoz at gcc dot gnu.org
--- Comment #8 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2010-10-29 22:57:35 UTC ---
yes, exactly. The updates for <atomic> are on the constexpr branch. Even this
will have to be updated for this paper, but it's much closer.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libstdc++/46207] std::atomic<const T *>::store(...) fails to compile
2010-10-28 5:35 [Bug libstdc++/46207] New: std::atomic<const T *>::store(...) fails to compile miles at gnu dot org
` (7 preceding siblings ...)
2010-10-29 22:57 ` bkoz at gcc dot gnu.org
@ 2011-02-17 1:55 ` paolo.carlini at oracle dot com
8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-02-17 1:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46207
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
--- Comment #9 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-02-17 01:49:59 UTC ---
atomic_address is gone, this works fine now!
^ permalink raw reply [flat|nested] 10+ messages in thread