[llvm-bugs] [Bug 48988] New: Frontend crash delete constexpr

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 1 04:38:00 PST 2021


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

            Bug ID: 48988
           Summary: Frontend crash delete constexpr
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: golka.gerald at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Here is a very simple piece of code that crashes on Clang 11.0 and 11.0.1:

constexpr int foo() {
    delete NONEXSISTING_PTR;
    return 5;
}

Reproducible example: https://godbolt.org/z/Ec7saK

Obviously no one will write such a code, but still the compiler shouldn't
crash.

-- 
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/20210201/50e44e8e/attachment-0001.html>


More information about the llvm-bugs mailing list