Bug 20518 – simple import ICE regression

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2020-01-18T19:16:47Z
Last change time
2020-01-27T02:59:02Z
Keywords
ice, ice-on-valid-code, industry, pull
Assigned to
No Owner
Creator
John Colvin

Comments

Comment #0 by john.loughran.colvin — 2020-01-18T19:16:47Z
The following is with latest dmd master, but the regression was introduced in 2.089.0 >tree /f Folder PATH listing for volume Windows Volume serial number is 547E-DA40 C:. │ r.d │ └───k └───a package.d q.d >type k\a\package.d >type k\a\q.d >type r.d import k.a.q; import k.a; >dmd.exe r.d --- 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 v2.090.0-beta.1 predefs DigitalMars Windows CRuntime_DigitalMars CppRuntime_DigitalMars LittleEndian D_Version2 all D_InlineAsm D_InlineAsm_X86 X86 Win32 assert D_ModuleInfo D_Exceptions D_TypeInfo D_HardFloat binary C:\Users\jcolvin_sym\Git\Digger\work\result\bin\dmd.exe version v2.090.0-beta.1 config C:\Users\jcolvin_sym\Git\Digger\work\result\bin\sc.ini DFLAGS -IC:\Users\jcolvin_sym\Git\Digger\work\result\bin\..\import --- core.exception.AssertError@dmd\dimport.d(169): Assertion failure ---------------- 0x0064A037 in _d_assertp 0x0043C70D in Import at C:\Users\jcolvin_sym\Git\Digger\work\repo\dmd\src\dmd\dimport.d(215) 0x00453A23 in Module at C:\Users\jcolvin_sym\Git\Digger\work\repo\dmd\src\dmd\dmodule.d(1164) 0x005018E0 in int dmd.mars.tryMain(uint, const(char)**, ref dmd.globals.Param) at C:\Users\jcolvin_sym\Git\Digger\work\repo\dmd\src\dmd\mars.d(554) 0x00502AC2 in _Dmain at C:\Users\jcolvin_sym\Git\Digger\work\repo\dmd\src\dmd\mars.d(945) 0x0064FE4B in void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll().__lambda1() 0x0064FDCD in void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll() 0x0064FC68 in _d_run_main 0x00502A69 in main at C:\Users\jcolvin_sym\Git\Digger\work\repo\dmd\src\dmd\mars.d(894) 0x0066E7E9 in mainCRTStartup 0x76BF0419 in BaseThreadInitThunk 0x7799662D in RtlGetAppContainerNamedObjectPath 0x779965FD in RtlGetAppContainerNamedObjectPath
Comment #1 by dlang-bot — 2020-01-19T03:49:03Z
@BorisCarvajal created dlang/dmd pull request #10736 "Fix Issue 20518 - simple import ICE regression" fixing this issue: - Fix Issue 20518 - simple import ICE regression https://github.com/dlang/dmd/pull/10736
Comment #2 by dlang-bot — 2020-01-19T04:45:28Z
dlang/dmd pull request #10736 "Fix Issue 20518 - simple import ICE regression" was merged into stable: - 0f8ab5e2ec5e347933b39c861d6c7622c06cdb64 by Boris Carvajal: Fix Issue 20518 - simple import ICE regression https://github.com/dlang/dmd/pull/10736
Comment #3 by boris2.9 — 2020-01-27T02:50:50Z
*** Issue 19790 has been marked as a duplicate of this issue. ***
Comment #4 by boris2.9 — 2020-01-27T02:59:02Z
*** Issue 18343 has been marked as a duplicate of this issue. ***