Skip to content

({}) should be rejected at file scope. #3434

@llvmbot

Description

@llvmbot
Bugzilla Link 3062
Resolution FIXED
Resolved on Mar 12, 2010 00:56
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor
CC @efriedma-quic

Extended Description

We should never ever ever accept

int x[({10;})];

but we do. gcc rejects ({}) outside functions.

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