[LLVMbugs] [Bug 3344] New: clang unconditionally rejects code with too many braces that is accepted by gcc

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Jan 17 08:10:13 PST 2009


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: unassignedclangbugs at nondot.org
        ReportedBy: bagnara at cs.unipr.it
                CC: llvmbugs at cs.uiuc.edu, bolzoni at cs.unipr.it


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



More information about the llvm-bugs mailing list