This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C PATCH for c/82679 (rejects-valid with _Atomic and arrays)
- From: Jeff Law <law at redhat dot com>
- To: Marek Polacek <polacek at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Joseph Myers <joseph at codesourcery dot com>
- Date: Mon, 11 Dec 2017 15:49:16 -0700
- Subject: Re: C PATCH for c/82679 (rejects-valid with _Atomic and arrays)
- Authentication-results: sourceware.org; auth=none
- References: <20171210174820.GA2605@redhat.com>
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 <polacek@redhat.com>
>
> PR c/82679
> * c-decl.c (grokdeclarator): Check declspecs insted of atomicp.
>
> * gcc.dg/c11-atomic-5.c: New test.
OK.
jeff