Skip to content

File with single "}" character causes infinite loop #3544

@llvmbot

Description

@llvmbot
Bugzilla Link 3172
Resolution FIXED
Resolved on Mar 12, 2010 00:56
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor
CC @nunoplopes

Extended Description

iMac:clang andersca$ cat test2.c
}

iMac:clang andersca$ clang -fsyntax-only test2.c
test2.c:1:1: error: expected identifier or '('
}
^
test2.c:1:1: error: expected identifier or '('
test2.c:1:1: error: expected identifier or '('
test2.c:1:1: error: expected identifier or '('
test2.c:1:1: error: expected identifier or '('
test2.c:1:1: error: expected identifier or '('
test2.c:1:1: error: expected identifier or '('
test2.c:1:1: error: expected identifier or '('
test2.c:1:1: error: expected identifier or '('

etc etc

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