Skip to content

structured binding with lambda reports 'Segmentation fault' #633

@contestjia

Description

@contestjia

Hello Andreas,Thanks for the great tool!
And there might be an issue with lambda
snippets like:

#include <iostream>
#include <map>

int main(){
    std::map<int,int> a={{1,3},{4,5}};
    for(auto &[k,v] : a){
       [k]{return k;}();
    }
}

it reports error:

Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
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