Skip to content

Incorrect parsing of Class.property.property syntax #4279

@llvmbot

Description

@llvmbot
Bugzilla Link 3907
Resolution FIXED
Resolved on Mar 12, 2010 00:56
Version unspecified
OS MacOS X
Reporter LLVM Bugzilla Contributor

Extended Description

It appears that clang isn't looking for any dot syntax property accesses after the first if the first one is on a class.

This code reproduces the issue (GCC doesn't like this either for other reasons, but it works enough to demonstrate the issue):

@​interface Test {}

  • (Test*)one;
  • (int)two;
    @​end

int main ()
{
return Test.one.two;
}

Tested using clang+llvm r68021, new driver.

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