[Bug c/62024] __atomic_always_lock_free is not a constant expression

2014-09-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/62024] __atomic_always_lock_free is not a constant expression

2014-09-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024 --- Comment #8 from Marek Polacek --- Author: mpolacek Date: Wed Sep 3 11:16:29 2014 New Revision: 214871 URL: https://gcc.gnu.org/viewcvs?rev=214871&root=gcc&view=rev Log: PR c/62024 * c-parser.c (c_parser_static_assert_declaration_no_

[Bug c/62024] __atomic_always_lock_free is not a constant expression

2014-08-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c/62024] __atomic_always_lock_free is not a constant expression

2014-08-14 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024 --- Comment #6 from joseph at codesourcery dot com --- On Thu, 14 Aug 2014, mpolacek at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024 > > --- Comment #5 from Marek Polacek --- > (In reply to jos...@codesourcery.co

[Bug c/62024] __atomic_always_lock_free is not a constant expression

2014-08-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024 --- Comment #5 from Marek Polacek --- (In reply to jos...@codesourcery.com from comment #4) > Whatever we do for __atomic_always_lock_free, note that we'll probably > need to find some way for ATOMIC_*_LOCK_FREE (in stdatomic.h) to expand > to

[Bug c/62024] __atomic_always_lock_free is not a constant expression

2014-08-13 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024 --- Comment #4 from joseph at codesourcery dot com --- Whatever we do for __atomic_always_lock_free, note that we'll probably need to find some way for ATOMIC_*_LOCK_FREE (in stdatomic.h) to expand to something usable in #if. http://www.open-s

[Bug c/62024] __atomic_always_lock_free is not a constant expression

2014-08-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024 --- Comment #3 from Marek Polacek --- (In reply to Amanieu d'Antras from comment #2) > int array[__atomic_always_lock_free(sizeof(int), 0)]; > > test.c:1:5: error: variably modified ‘array’ at file scope I think it should be fine to reject this

[Bug c/62024] __atomic_always_lock_free is not a constant expression

2014-08-12 Thread amanieu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024 --- Comment #2 from Amanieu d'Antras --- A similar error happens when trying to use the result of __atomic_always_lock_free as the size of an array: int array[__atomic_always_lock_free(sizeof(int), 0)]; test.c:1:5: error: variably modified ‘arr

[Bug c/62024] __atomic_always_lock_free is not a constant expression

2014-08-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|