Bug 11453 – Compiling packages has a dependency on order of modules passed to the compiler.
Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-06T08:04:00Z
Last change time
2014-08-22T08:05:19Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
ibuclaw
Comments
Comment #0 by ibuclaw — 2013-11-06T08:04:15Z
Files to reproduce:
test11136.d:
---
module test11136;
bar11136.d:
---
module test11136.bar11136;
dmd -c test11136.d bar11136.d // works
dmd -c bar11136.d test11136.d // fails
Message:
---
Error: module test11136 from file test11136.d conflicts with package name test11136
Found when running the testsuite against gdc + 2.064.
Comment #1 by ibuclaw — 2013-11-06T08:09:05Z
Blocker as I cannot actually pass the testsuite on gdc without this being fixed - and no I can't switch over the order of sources due to the way dejagnu works. :o)
Comment #2 by k.hara.pg — 2014-07-30T03:54:43Z
In 2.066 git-head, order dependent issue is resolved.
C:\Users\khara\d/
$ dmd -c test11136.d bar11136.d
DMD v2.066 DEBUG
bar11136.d(1): Error: package name 'test11136' conflicts with usage as a module name in file test11136.d
---> Error is expected
C:\Users\khara\d/
$ dmd -c bar11136.d test11136.d
DMD v2.066 DEBUG
Error: module test11136 from file test11136.d conflicts with package name test11136
---> also Error is expected, but no filename/line number is not good.
Fix diagnostic issue:
https://github.com/D-Programming-Language/dmd/pull/3834
Comment #3 by github-bugzilla — 2014-08-03T17:53:51Z