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