Incomplete array type with internal linkage: missing diagnostics under -pedantic · Issue #50661 · llvm/llvm-project (original) (raw)
Bugzilla Link | 51319 |
---|---|
Version | 12.0 |
OS | Windows NT |
Reporter | LLVM Bugzilla Contributor |
CC | @DougGregor,@zygoloid |
Extended Description
Sample code (t0.c):
static int arr[ ];
int main( void )
{
return arr[ 0 ];
}
static int arr[ ] = { 0 };
Invocation: clang t0.c -std=c11 -Wall -Wextra -pedantic
Expected diagnostics: t0.c:1:12: error: array size missing in ‘arr’
Actual diagnostics:
Tool version: 12.0.0