[llvm-bugs] [Bug 51319] New: Incomplete array type with internal linkage: missing diagnostics under -pedantic
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 3 06:05:19 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51319
Bug ID: 51319
Summary: Incomplete array type with internal linkage: missing
diagnostics under -pedantic
Product: clang
Version: 12.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: unassignedclangbugs at nondot.org
Reporter: pavel.morozkin at gmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
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: <nothing>
Tool version: 12.0.0
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210803/a9449e67/attachment.html>
More information about the llvm-bugs
mailing list