_Atomic along with restrict is considered an error
Open
c11
clang:frontend
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
I believe that in this code:
```c
static int * restrict a36;
static int * _Atomic b36;
static int * _Atomic restrict i36; /* error here */
```
both '_Atomic' and 'restrict' are valid type qualifiers.
Yet, the third line is considered an error.
Contributor guide
Research direction
Reproduce the reported diagnostic with the C snippet in the issue. Start by tracing how Clang parses and validates the combined _Atomic and restrict qualifiers, then identify the relevant compiler test location from that diagnostic path. Done means the valid qualifier combination is accepted and a regression test covers the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100