Skip to content

clang rejects valid character constants beginning with three backslashes #4871

Closed
@efriedma-quic

Description

@efriedma-quic
Bugzilla Link 4499
Resolution FIXED
Resolved on Jul 07, 2010 18:24
Version unspecified
OS Linux

Extended Description

Testcase:
int t1 = '\'';
int t2 = '\\';
int t3 = '\
';

All of these should be accepted (the first two are multi-character character constants).

Additional testcase:
int t4 = '\'; // Invalid, but currently prints a random
// large number of diagnostics

Issue found by code inspection.

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