-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Description
| Bugzilla Link | 36255 |
| Version | trunk |
| OS | FreeBSD |
| Attachments | Pre-processed source file and run-script related to the crash |
| Reporter | LLVM Bugzilla Contributor |
Extended Description
I am not very knowledgeable how Clang works and thus I am unable to give any hints what exactly went wrong.
Attached are the pre-processed source and run-script.
clang version 7.0.0
Target: x86_64-portbld-freebsd11.1
Thread model: posix
InstalledDir: /usr/local/llvm-devel/bin
And here is the crash backtrace:
Assertion failed: (Info.Ctx.hasSameType(BaseIt->getType(), BaseType) && "base class initializers not in expected order"), function HandleConstructorCall, file /wrkdirs/usr/ports/devel/llvm-devel/work/llvm-4f82436e1ddfde29383d98790bbac9de3612f092/tools/clang/lib/AST/ExprConstant.cpp, line 4383.
#0 0x0000000001e777f8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/local/llvm-devel/bin/clang-7.0+0x1e777f8)
#1 0x0000000001e77e16 (/usr/local/llvm-devel/bin/clang-7.0+0x1e77e16)
#2 0x0000000804fe2926 (/lib/libthr.so.3+0xe926)
#3 0x0000000804fe1ecf (/lib/libthr.so.3+0xdecf)
Stack dump:
0. Program arguments: /usr/local/llvm-devel/bin/clang-7.0 -cc1 -triple x86_64-portbld-freebsd11.1 -emit-obj -mrelax-all -disable-free -main-file-name meta.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -resource-dir /usr/local/llvm-devel/lib/clang/7.0.0 -I include -internal-isystem /usr/include/c++/v1 -pedantic --std=c++1z -fdeprecated-macro -fdebug-compilation-dir /home/dev/projects/c++/meta -ferror-limit 19 -fmessage-length 113 -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/meta-84dcf9.o -x c++ meta.cpp
-
<eof> parser at end of file -
meta.cpp:278:5: LLVM IR generation of declaration 'main' -
meta.cpp:278:5: Generating code for declaration 'main'
clang-7.0: error: unable to execute command: Abort trap (core dumped)
clang-7.0: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 7.0.0
Target: x86_64-portbld-freebsd11.1
Thread model: posix
InstalledDir: /usr/local/llvm-devel/bin
clang-7.0: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang-7.0: note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-7.0: note: diagnostic msg: /tmp/meta-e36efc.cpp
clang-7.0: note: diagnostic msg: /tmp/meta-e36efc.sh
clang-7.0: note: diagnostic msg: