[clang] Clang crashes when parsing invalid typedef with overloaded operator syntax and unnamed class type
Open
clang:frontend
confirmed
crash-on-invalid
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
```c++
typedef(( operator | <> ) ) ( class { private : });
```
See Compiler Explorer: [https://godbolt.org/z/7oYbzj55e](https://godbolt.org/z/7oYbzj55e)
Contributor guide
Research direction
Start by reproducing the crash with the C++ snippet in the issue, using the linked Compiler Explorer example as a reference. Trace the parsing path for the invalid typedef, then verify that the same input no longer crashes and is covered by regression testing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100