llvm / llvm/llvm-project

[Clang][Windows] Accepts invalid `[] int x;`

Open
#173,156 6 comments 0 reactions 0 assignees View on GitHub
accepts-invalid clang:frontend confirmed
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

```c++
[] int x;
```
This code is invalid but accepted by Clang on Windows, reproducible with the main branch.
See https://compiler-explorer.com/z/s65rv9Pcf. (clang-cl 18.1 only)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.