This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C PATCH for c/82679 (rejects-valid with _Atomic and arrays)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]