Bug 10598 – Using not-imported type - AssertFail: 'global.errors' line 6040 'template.c'
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-10T11:14:00Z
Last change time
2013-11-18T17:19:09Z
Keywords
ice
Assigned to
nobody
Creator
qaston
Comments
Comment #0 by qaston — 2013-07-10T11:14:33Z
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.
Comment #1 by k.hara.pg — 2013-07-10T23:06:00Z
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
Comment #2 by qaston — 2013-07-10T23:42:07Z
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".
.