https://bugs.llvm.org/show_bug.cgi?id=40945
Bug ID: 40945
Summary: [Win] Generic lambda causes stack overflow
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: mikhail.strelni...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
This results in infinite recursion on Windows:
inline constexpr auto good = [](auto v) { return !v; };
inline constexpr auto bad = [](auto v) { return !good(v); };
int foo()
{
return 42;
}
int main()
{
auto r = foo();
bad(r);
}
https://godbolt.org/z/TGGHg8
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs