Skip to content

ranged for-loop inside lambda crashes #238

@hessbe

Description

@hessbe

this example crashes the conversion:
void f() { auto lambda = [](auto container) { for(auto test : container) { } }; }

also with a template instantiation:
`#include
void f() {
auto lambda = [](auto container) {
for(auto test : container) { }
};

std::vector vec{1,2,3,4};
lambda(vec);
}`

[0x13449ff] ... [0x4055aa] Segmentation fault (core dumped)

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