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

            Bug ID: 50478
           Summary: [C2x] a label with a declaration should be allowed
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C2x
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

Hi all.

I think this is a new feature in C2x but it seems clang still can not pass the
following code.

$cat small.c
int main(){
L: 
    int a = 0;
    return 0;
}

clang complains "error: expected expression", while GCC accepts this well.

In Godbolt: https://godbolt.org/z/KhdYxrnhf

See also in GCC's implementation: 

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100353

I try to find a dup report but failed, maybe there is a dup case?

Thanks,
Haoxin

-- 
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