public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/62024] New: __atomic_always_lock_free is not a constant expression
@ 2014-08-05 12:48 amanieu at gmail dot com
  2014-08-13  5:22 ` [Bug c/62024] " mpolacek at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: amanieu at gmail dot com @ 2014-08-05 12:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024

            Bug ID: 62024
           Summary: __atomic_always_lock_free is not a constant expression
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amanieu at gmail dot com

This line causes an error despite the documentation saying that
__atomic_always_lock_free is a constant expression:

_Static_assert(__atomic_always_lock_free(sizeof(int), 0), "");

test.c:1:16: error: expression in static assertion is not constant


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

end of thread, other threads:[~2014-09-03 11:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-05 12:48 [Bug c/62024] New: __atomic_always_lock_free is not a constant expression amanieu at gmail dot com
2014-08-13  5:22 ` [Bug c/62024] " mpolacek at gcc dot gnu.org
2014-08-13  5:43 ` amanieu at gmail dot com
2014-08-13 16:27 ` joseph at codesourcery dot com
2014-08-14 15:00 ` mpolacek at gcc dot gnu.org
2014-08-14 17:00 ` joseph at codesourcery dot com
2014-08-25 11:52 ` mpolacek at gcc dot gnu.org
2014-09-03 11:17 ` mpolacek at gcc dot gnu.org
2014-09-03 11:18 ` mpolacek 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).