www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11544] New: Order of imports triggers errors in std.complex, std.random and std.uni

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

           Summary: Order of imports triggers errors in std.complex,
                    std.random and std.uni
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ppodsiadly mykolab.com



I'm using Linux x86_64 and DMD64 D Compiler v2.064

The following code doesn't compile:

// file a.d:

module a;

import b;
import std.conv;

interface A
{
}

// file b.d:

module b;

import a;

interface B : A
{
}

Compilation ends with multiple errors in Phobos (see attachment).
Errors don't occur when I compile file b.d separately, only when I compile a.d
(or both files at once).

Program compiles successfully when I change order of imports in a.d, so that
std.conv is imported first.
Also, program compiles successfully when I make B a class or an abstract class
instead of an interface (order of imports doesn't matter in this case).

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




Created an attachment (id=1292)
Compilation errors

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