Issue 87766
Summary Tentative array definition warning has no warning name
Labels clang:diagnostics
Assignees
Reporter bevin-hansson
    If you define an array with an incomplete type, you get a warning about it being a tentative array definition:
```
int a[];
```
```
<source>:12:5: warning: tentative array definition assumed to have one element
   12 | int a[];
      | ^
```
However, this warning has no name. Even if the tentative array behavior is desired, it's not possible to disable it selectively via the command line or using diagnostics pragmas. This would be useful.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to