June 23, 2011 [Issue 6198] New: [GSoC] ICE(e2ir.c) With circular import | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6198 Summary: [GSoC] ICE(e2ir.c) With circular import Product: D Version: D1 & D2 Platform: Other OS/Version: All Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: robert@octarineparrot.com --- Comment #0 from Robert Clipsham <robert@octarineparrot.com> 2011-06-23 16:20:40 BST --- Reduced test case from the GSoC mailing list: arraystorage.d: ---- import vector; struct ArrayViewStorage( T ) { ArrayStorage!T array_; } struct ArrayStorage( T ) { alias ArrayViewStorage!T View; this( BaseVector!View vec ) { } } ---- vector.d: ---- import arraystorage; struct BaseVector( Storage ) { Storage storage() { return stor; } Storage stor; } template Vector( T ) { alias BaseVector!( ArrayStorage!T ) Vector; } void main() { auto a = Vector!int(); } ---- Compile with: dmd arraystorage.d vector.d Note that reversing the order of files fixes the issue. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 24, 2011 [Issue 6198] [GSoC] ICE(e2ir.c) With circular import | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | http://d.puremagic.com/issues/show_bug.cgi?id=6198 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2011-06-23 20:40:52 PDT --- https://github.com/D-Programming-Language/dmd/commit/0a2a557772318868f1fdd13ac9761348a7d155c0 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation