Skip to content

Extra spaces surrounding arrow in templated member call in variable decl #43196

@lichray

Description

@lichray
Bugzilla Link 43851
Version 8.0
OS Windows NT
Attachments repro

Extended Description

The last declaration in the following code:

  struct A {
    template <int> A foo();
  };

  auto p = new A;
  auto x = p -> foo<1>();

Should be

auto x = p->foo<1>();

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorbugzillaIssues migrated from bugzillaclang-format

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions