[Issue 11039] New: Undefined instantiation from circular imports
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 14 13:40:08 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11039
Summary: Undefined instantiation from circular imports
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bugzilla at digitalmars.com
--- Comment #0 from Walter Bright <bugzilla at digitalmars.com> 2013-09-14 13:40:06 PDT ---
As reported by Orvid in https://github.com/D-Programming-Language/dmd/pull/2550
------- foo2.d ----------
import b2;
struct SomeStruct(T)
{
T field;
T getInnerField()
{
return field;
}
}
static globalField = SomeStruct!string("Hello!");
void main()
{
globalField.getInnerField();
anotherGlobalField.getInnerField();
}
------ b2.d --------
import foo2;
static anotherGlobalField = SomeStruct!string("Hello Again!");
--------------------
dmd -c foo2
dmd -c b2
dmd foo2.obj b2.obj
That should produce an undefined reference to
SomeStruct!string.getInnerField().
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list