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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

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
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to