Skip to content

clang ("foo") accepted as char[] initializer #8418

@efriedma-quic

Description

@efriedma-quic
Bugzilla Link 8046
Version unspecified
OS Linux

Extended Description

Testcase:
char arr[] = ("foo");

clang gives no error. Strictly speaking, this isn't legal; Comeau gives "parentheses around a string initializer are nonstandard".

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepts-invalidbugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second party

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions