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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 18 14:05:36 PST 2013


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 at puremagic.com
        ReportedBy: ppodsiadly at mykolab.com


--- Comment #0 from ppodsiadly at mykolab.com 2013-11-18 14:05:34 PST ---
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: -------


More information about the Digitalmars-d-bugs mailing list