public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/60940] New: general operations on atomic t ypes do not work with atomic integral typedefs
@ 2014-04-23 13:21 redi at gcc dot gnu.org
  2014-04-23 17:07 ` [Bug libstdc++/60940] general operations on atomic types " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2014-04-23 13:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60940

            Bug ID: 60940
           Summary: general operations on atomic t ypes do not work with
                    atomic integral typedefs
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org

This is rejected because the atomic operations only accept std::atomic<T> not
the std::__atomic_base<T> base classes:

#ifdef __cplusplus
#include <atomic>
using namespace std;
#else
#include <stdatomic.h>
#endif

atomic_int i;

int main()
{
  atomic_store(&i, 0);
  return atomic_load(&i);
}


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-17  1:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-23 13:21 [Bug libstdc++/60940] New: general operations on atomic t ypes do not work with atomic integral typedefs redi at gcc dot gnu.org
2014-04-23 17:07 ` [Bug libstdc++/60940] general operations on atomic types " redi at gcc dot gnu.org
2014-05-04 21:01 ` redi at gcc dot gnu.org
2014-09-19 14:00 ` redi at gcc dot gnu.org
2015-01-17  1:24 ` redi at gcc dot gnu.org
2015-01-17  1:24 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).