https://llvm.org/bugs/show_bug.cgi?id=28782

            Bug ID: 28782
           Summary: possible ms extension: declaration after label
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

I noticed this difference between cl (VS 2015 update 3) and clang-cl (3.8.1):

$ cat lab.c
void f(int i) {
foo: int n;
switch(i) {
case 0: int m;
}
}

$ cl /c lab.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

lab.c

$ clang-cl /c lab.c
lab.c(2,6) :  error: expected expression
foo: int n;
     ^
lab.c(4,9) :  error: expected expression
case 0: int m;
        ^
2 errors generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to