On 12/10/2017 10:48 AM, Marek Polacek wrote:
> We were wrongly rejecting code in the attached test because the check
> in grokdeclarator is wrong: we only want to check whether the user is
> trying to apply _Atomic to an array type, i.e. this:
> 
> typedef int T[10];
> _Atomic T a;
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
> 
> 2017-12-10  Marek Polacek  <pola...@redhat.com>
> 
>       PR c/82679
>       * c-decl.c (grokdeclarator): Check declspecs insted of atomicp.
> 
>       * gcc.dg/c11-atomic-5.c: New test.
OK.
jeff

Reply via email to