[Bug libstdc++/60695] std::atomic doesn't work when X is of zero size

2014-04-15 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60695 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/60695] std::atomic doesn't work when X is of zero size

2014-04-15 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60695 --- Comment #5 from Jonathan Wakely --- Author: redi Date: Tue Apr 15 13:48:07 2014 New Revision: 209418 URL: http://gcc.gnu.org/viewcvs?rev=209418&root=gcc&view=rev Log: PR libstdc++/60695 * include/std/atomic (atomic<_Tp>): Add static a

[Bug libstdc++/60695] std::atomic doesn't work when X is of zero size

2014-03-28 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60695 --- Comment #4 from Jonathan Wakely --- I don't buy it. That zero-size struct type has very limited uses, it's not the sort of type you use like other value types, and I can't imagine any scenario where that type is useful where you're also storin

[Bug libstdc++/60695] std::atomic doesn't work when X is of zero size

2014-03-28 Thread roman at binarylife dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60695 --- Comment #3 from Roman Kononov --- Yes, it is definitely silly in some sense. But, some templated user code might become more complex with this behaviour. If gcc supports zero-sized objects it would be nice to support them fully. The implementa

[Bug libstdc++/60695] std::atomic doesn't work when X is of zero size

2014-03-28 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60695 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|