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: unassignedclangb...@nondot.org
          Reporter: golka.ger...@gmail.com
                CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to