www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11563] New: Module dependency cycle causes unrelated template instantiations to fail

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11563

           Summary: Module dependency cycle causes unrelated template
                    instantiations to fail
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: sludwig outerproduct.org
        Depends on: 11225



PST ---
Compiling the following on DMD 2.061-2.064 using "dmd -c a.d" results in a 
number of template instantiation failures (std.algorithm.startsWith). DMD 2.060 
still works. This is very similar to 11225 (or rather that was the primary 
cause for it), which probably was just a symptom of the same underlying cause.

a.d:
---
import b;

interface I {}
---

b.d
---
import a;
import std.traits;

interface J : I {} // comment out to let compilation succeed
struct A { }
template B(T) { enum mod = moduleName!T; }
pragma(msg, B!A.mod);
---

Sorry for this only partially reduced test case, but this has been lying around 
for a while on my desk now and I never got the time to fully reduce it, so I 
thought I'd rather report what I have before it falls under the table. But 
also, it's likely that a fully reproduced case would again just lead to a 
partial fix.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 20 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11563


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow gmail.com



06:46:24 EET ---
Possibly related to 7852/7904.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 20 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11563


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid



https://github.com/D-Programming-Language/dmd/pull/2872

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 23 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11563




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/cc355e33e31852718753852390b2257d8871819b
fix Issue 11563 - Module dependency cycle causes unrelated template
instantiations to fail

https://github.com/D-Programming-Language/dmd/commit/47332912de517274e139f34a7faac0f32efd5833


[REG2.061] Issue 11563 - Module dependency cycle causes unrelated template
instantiations to fail

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 24 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11563


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |FIXED


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