Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

clang frontend command failed due to signal #35471

Open Quuxplusone opened 6 years ago

Quuxplusone commented 6 years ago
Bugzilla Link PR36498
Status NEW
Importance P enhancement
Reported by stsp (stsp2@yandex.ru)
Reported on 2018-02-23 19:41:34 -0800
Last modified on 2018-02-23 19:41:34 -0800
Version 5.0
Hardware PC Linux
CC llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments tst.cpp (82 bytes, text/x-c++src)
Blocks
Blocked by
See also
Created attachment 19947
test-case

The following simple test-case makes clang++ to segfault:

---
void operator delete(void *) {}
#include <memory>
void operator delete(void *) {}
---

$ clang++ -c -std=c++11 tst.cpp
clang-5.0: error: unable to execute command: Segmentation fault (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)

Without -std=c++11 there is no segfault.
Quuxplusone commented 6 years ago

Attached tst.cpp (82 bytes, text/x-c++src): test-case