www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20518] New: simple import ICE regression

https://issues.dlang.org/show_bug.cgi?id=20518

          Issue ID: 20518
           Summary: simple import ICE regression
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

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 --
Jan 18 2020