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
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b94f7c2b7b1d969f4f22849d69fba04704981bdf fix Issue 11453 - Compiling packages has a dependency on order of modules passed to the compiler https://github.com/D-Programming-Language/dmd/commit/9d6cef9ab255fa83dab53cbe12d7113a39a918ff Merge pull request #3834 from 9rnsr/fix11453 Issue 11453 - Compiling packages has a dependency on order of modules passed to the compiler
Comment #4 by github-bugzilla — 2014-08-08T02:59:23Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a3b6ed697085c8d92b09a2821d353c21cadc68cf Merge pull request #3834 from 9rnsr/fix11453 Issue 11453 - Compiling packages has a dependency on order of modules passed to the compiler
Comment #5 by github-bugzilla — 2014-08-22T08:05:19Z