[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 mpolacek at gcc dot gnu.org --- Author: mpolacek Date: Wed Sep 3 11:16:29 2014 New Revision: 214871 URL: https://gcc.gnu.org/viewcvs?rev=214871root=gccview=rev Log: PR c/62024 * c-parser.c

[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 mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[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 mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[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 mpolacek at gcc dot gnu.org --- (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

[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 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 mpolacek at

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

2014-08-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024 --- Comment #3 from Marek Polacek mpolacek at gcc dot gnu.org --- (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

[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 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

[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 mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[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 amanieu at gmail dot com --- 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: