www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14116] New: Assertion failure: 'p->isPkgMod == PKGmodule' on

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

          Issue ID: 14116
           Summary: Assertion failure: 'p->isPkgMod == PKGmodule' on line
                    143 in file 'import.c'
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: rswhite4 gmail.com

test/test.d

----
module test.test;

void foo() {

}
----

test/foo.d

----
module test.foo;

import test;

void main() {

}
----

Compiled with dmd test.d foo.d -vgc -wi on Windows 8.1 64 Bit
results in

----
foo.d(3): Error: module test.test from file test.d must be imported with
'import
 test.test;'
Assertion failure: 'p->isPkgMod == PKGmodule' on line 143 in file 'import.c'

abnormal program termination
----

--
Feb 02 2015