https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
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_
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
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
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
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62024
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|