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: unassignedclangb...@nondot.org
          Reporter: pavel.moroz...@gmail.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to