http://llvm.org/bugs/show_bug.cgi?id=3344

           Summary: clang unconditionally rejects code with too many braces
                    that is accepted by gcc
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


$ cat bug1.c
struct S
{
  int i;
};

struct S s =
{
  {{ 1 }}
};
$ gcc -w -c bug1.c
$ clang -w bug1.c
bug1.c:8:3: error: too many braces around scalar initializer
  {{ 1 }}
  ^~~~~~~
1 diagnostic generated.
$


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to