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

2017-12-11 Thread Jeff Law
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; > > Bootstrappe

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

2017-12-10 Thread Marek Polacek
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