Skip to content

invoke lambda with temp.operator()() generate wrong code. #550

@heroboy

Description

@heroboy

Generally, it generate the code to temp.operator __lambda_6_15::retType_6_15().
But in many cases, the generated lambda class doesn't contains retType.

As I tested:

//this is correct
auto temp = []() {};
temp.operator()();
  
//wrong
auto temp2 = []<typename>() {};
temp2.operator()<int>();

//wrong
int v = 1;
auto temp3 = [v]() {};
temp3.operator()();

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions