Skip to content

Strange parse error with __extension__ operator #3790

@efriedma-quic

Description

@efriedma-quic
Bugzilla Link 3418
Resolution FIXED
Resolved on Mar 12, 2010 00:56
Version unspecified
OS Linux

Extended Description

Testcase:
int a() {
extension ((char)0) = 1;
}

clang output:
:2:29: error: expected ';' after expression
extension ((char)0) = 1;
^
:2:29: error: expected expression
:2:3: warning: expression result unused
extension ((char)0) = 1;
^ ~~~~~~~~~~~
3 diagnostics generated.

gcc accepts this without any errors/warnings.

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