Thread overview
[Issue 10598] New: Using not-imported type - AssertFail: 'global.errors' line 6040 'template.c'
Jul 10, 2013
QAston
Jul 11, 2013
Kenji Hara
Jul 11, 2013
QAston
July 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10598

           Summary: Using not-imported type - AssertFail: 'global.errors'
                    line 6040 'template.c'
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: qaston@gmail.com


--- Comment #0 from QAston <qaston@gmail.com> 2013-07-10 11:14:33 PDT ---
To trigger the assert we need 2 modules:

module a.notimported;

struct LocalType {
}

module a.app;
import std.typetuple;

alias TypeTuple!(__traits(getMember, a.notimported,(__traits(allMembers,
a.notimported)[1])))[0] notImportedType;

Modules have to create a hierarchy like this, at least it appears this way.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 11, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10598



--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-07-10 23:06:00 PDT ---
I couldn't reproduce the issue with git head in Windows.

Could you provide us more information?
1. the used dmd version
2. two module file names, file location and directory structure
3. invoke command line and current directory
4. platform

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 11, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10598



--- Comment #2 from QAston <qaston@gmail.com> 2013-07-10 23:42:07 PDT ---
dmd version: 2.063.2
platform: win8 64 bit
command line invoked from a\: dmd a/app.d a/notimported.d
dir structure:

a\
    a\notimported.d
    a\app.d

The bug here appears to be that i'm able to use a.notimported in app.d without
importing it. In setup without "a" package I simply gen an error about unknown
symbol "notimported".
.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------