www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12481] New: Wrong cross-module overload resolution with std.process.pipe and std.functional.pipe

https://d.puremagic.com/issues/show_bug.cgi?id=12481

           Summary: Wrong cross-module overload resolution with
                    std.process.pipe and std.functional.pipe
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com



19:02:46 EET ---
/////// test.d ///////
import std.process;
import std.functional;

void main()
{
    pipe();
}
//////////////////////

The compiler is expected to either choose std.process.pipe, or present an
ambiguity error. Currently it chooses std.functional.pipe, with the resulting
error:

C:\...\std\functional.d(514,25): Error: tuple index 0 exceeds 0
C:\...\std\functional.d(514,42): Error: slice [1..0] is out of range of [0..0]
C:\...\std\functional.d(533,22): Error: template instance std.functional
.compose!() error instantiating
test.d(6,6):        instantiated from here: pipe!()

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