Using the latest built dmd/phobos/druntime code from git I get a compiler core dump: Core was generated by `dmd -I../.. -g -debug -od../.obj -of../.obj/variant common.d variant.d ../teg/s'. Program terminated with signal 11, Segmentation fault. #0 0x00000000004f7a2f in TemplateMixin::hasPointers() () (gdb) bt #0 0x00000000004f7a2f in TemplateMixin::hasPointers() () #1 0x000000000050cc0e in ClassDeclaration::toObjFile(int) () #2 0x00000000004a024f in Module::genobjfile(int) () #3 0x0000000000403c4f in main () I'm trying to build a minimal test case. dmd 2.047 has other compilation segfaults affecting my code, I'm a little worried I'll never be able to build my code with any D compiler above 2.046 again ;)
Sorry meant 2.056. I fixed it... have a patch.
Created attachment 1070 [details] Fixes this bug entirely... dereference of null.
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1faafe155a3b80c4dfcee923f6312dc4f29cc9e7 Merge pull request #649 from nuisanceofcats/master Fix issue 7377, compiler segfault via null pointer dereference
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/21cf12232acf37dcb7c9b9078a58b4338deb346c fix issue 7377
I really wonder why members is NULL.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル