Skip to content

clang unconditionally rejects code with too many braces that is accepted by gcc #3716

@llvmbot

Description

@llvmbot
Bugzilla Link 3344
Resolution FIXED
Resolved on Aug 13, 2010 22:15
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor
CC @DougGregor,@efriedma-quic

Extended Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions