[llvm-bugs] [Bug 40945] New: [Win] Generic lambda causes stack overflow

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 3 21:01:09 PST 2019


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: unassignedclangbugs at nondot.org
          Reporter: mikhail.strelnikov at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190304/ec647b55/attachment.html>


More information about the llvm-bugs mailing list