[llvm-bugs] [Bug 52145] New: Frontend segmentation fault when using naked lambda function.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 11 17:09:45 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=52145

            Bug ID: 52145
           Summary: Frontend segmentation fault when using naked lambda
                    function.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++2b
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kacper.slominski72 at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

Created attachment 25351
  --> https://bugs.llvm.org/attachment.cgi?id=25351&action=edit
Stack trace

When using Clang 13 and trunk (checked on godbolt), invoking a naked lambda
causes a segmentation fault in the frontend during codegen for it.

Example code (tested with -std=c++2b -Wall -Wextra -Wpedantic):
void f() {
    [] [[gnu::naked]] {}();
}

Attached is the stack trace from Clang 13.

-- 
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/20211012/6ea8cfee/attachment.html>


More information about the llvm-bugs mailing list