Created attachment 1407134 [details] test-case Description of problem: clang crash with the attached test-case Version-Release number of selected component (if applicable): clang-5.0.1-1.fc27.x86_64 How reproducible: easily Steps to Reproduce: 1. clang++ -std=c++11 -c malloca.cpp Actual results: clang-5.0: error: unable to execute command: Segmentation fault (core dumped) Expected results: proper error messages (the code is clearly invalid) Additional info: This code is actually a result of the question I asked here: https://stackoverflow.com/questions/48915888/allocate-shared-with-malloc Maybe someone from clang devs/C++ gurus can hint me about why do I need to manually override the delete operator here?
Same root cause as bug 1554280. *** This bug has been marked as a duplicate of bug 1554280 ***
Also, you'll have to ask your C++ question somewhere else, I'm not sure of the answer.