Comment #2 by razvan.nitu1305 — 2019-04-09T12:54:36Z
What version of dmd are you using? I cannot reproduce on git HEAD master branch.
Comment #3 by ibuclaw — 2019-04-15T20:45:47Z
Always a good sign when someone doesn't test the compiler with asserts enabled.
Comment #4 by ibuclaw — 2019-04-15T20:51:54Z
This is what you should see if you compile without ENABLE_RELEASE=1.
---
ERROR: This is a compiler bug.
Please report it via https://issues.dlang.org/enter_bug.cgi
with, preferably, a reduced, reproducible example and the information below.
DustMite (https://github.com/CyberShadow/DustMite/wiki) can help with the reduction.
---
DMD %.*s
predefs DigitalMars Posix linux ELFv1 CRuntime_Glibc CppRuntime_Gcc LittleEndian D_Version2 all D_SIMD D_InlineAsm_X86_64 X86_64 D_LP64 D_PIC assert D_ModuleInfo D_Exceptions D_TypeInfo D_HardFloat
binary ../generated/linux/release/64/dmd
version v2.085.1-beta.1-444-g07f379f49
config ../generated/linux/release/64/dmd.conf
DFLAGS -I../generated/linux/release/64/../../../../../druntime/import -I../generated/linux/release/64/../../../../../phobos -L-L../generated/linux/release/64/../../../../../phobos/generated/linux/release/64 -L--export-dynamic -fPIC
---
core.exception.AssertError@dmd/dimport.d(168): Assertion failure
----------------
??:? _d_assertp [0x3c41a361]
dmd/dimport.d:168 Import::load(Scope*) [0x3c1e5d5b]
dmd/dimport.d:214 Import::importAll(Scope*) [0x3c1e5fa4]
dmd/dmodule.d:1036 Module::importAll(Scope*) [0x3c202a37]
dmd/dimport.d:217 Import::importAll(Scope*) [0x3c1e5fca]
dmd/dmodule.d:1036 Module::importAll(Scope*) [0x3c202a37]
dmd/mars.d:559 int dmd.mars.tryMain(ulong, const(char)**, ref dmd.globals.Param) [0x3c2bbc16]
dmd/mars.d:925 _Dmain [0x3c2bd35d]
Comment #5 by boris2.9 — 2020-01-27T02:50:50Z
*** This issue has been marked as a duplicate of issue 20518 ***