[llvm-bugs] [Bug 26929] New: Core dump if compiled with -g in combination with lambda
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Mar 12 16:21:58 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26929
Bug ID: 26929
Summary: Core dump if compiled with -g in combination with
lambda
Product: clang
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: eyenseo at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
As the title states - core dump if compiled with -g, optimisation level don't
matter.
Arch Linux x64, clang version 3.7.1
Minimal example is this:
#include <core/variant.hpp>
int main(int argc, char const* argv[]) {
struct Test {
core::variant<int, double> tmp;
};
const Test t{{1}};
// BOOM
[&t] { t.tmp.match([](const int& v) {}, [](const double& v) {}); }();
// NO BOOM
// t.tmp.match([](const int& v) {}, [](const double& v) {});
// [&t] {}();
return 0;
}
Where the header is from https://github.com/mnmlstc/core
That's all I can report ... sorry =/
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160313/8a651fbc/attachment.html>
More information about the llvm-bugs
mailing list