Bug 11544 – Order of imports triggers errors in std.complex, std.random and std.uni

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2013-11-18T14:05:34Z
Last change time
2024-12-13T18:14:05Z
Assigned to
No Owner
Creator
ppodsiadly
Moved to GitHub: dmd#18715 →

Attachments

IDFilenameSummaryContent-TypeSize
1292errors.txtCompilation errorstext/plain3634

Comments

Comment #0 by ppodsiadly — 2013-11-18T14:05:34Z
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).
Comment #1 by ppodsiadly — 2013-11-18T14:06:21Z
Created attachment 1292 Compilation errors
Comment #2 by robert.schadek — 2024-12-13T18:14:05Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18715 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB