Bug 11136 – ICE on incorrect module declaration

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-28T04:43:00Z
Last change time
2013-10-01T19:26:09Z
Keywords
ice, pull
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2013-09-28T04:43:14Z
./foo.d: ----- module foo; ----- ./bar.d: ----- module foo.bar; // note: should be 'bar' ----- $ dmd foo.d bar.d DMD crashes. Stack trace: 0018f950 00438815 image00400000!_aaGet+0xa [C:\dmd-git\dmd2\src\dmd\src\root\aav.c @ 65] 0018f974 00407300 image00400000!DsymbolTable::insert+0x1f [C:\dmd-git\dmd2\src\dmd\src\dsymbol.c @ 1501] 0018fab4 00404f35 image00400000!Module::parse+0x7ed [C:\dmd-git\dmd2\src\dmd\src\module.c @ 574] 0018ff0c 00405d11 image00400000!tryMain+0x27fa [C:\dmd-git\dmd2\src\dmd\src\mars.c @ 1477] 0018ff48 0057c24d image00400000!main+0x43 [C:\dmd-git\dmd2\src\dmd\src\mars.c @ 1803] Only tested on Win7.
Comment #1 by andrej.mitrovich — 2013-09-28T04:43:31Z
Tested with 2.064 git-head.
Comment #2 by bugzilla — 2013-10-01T15:01:47Z
Comment #3 by bugzilla — 2013-10-01T15:03:54Z
*** Issue 10370 has been marked as a duplicate of this issue. ***
Comment #4 by github-bugzilla — 2013-10-01T19:25:47Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/483ecc2815b4504bd4e30af2156957450d985307 fix Issue 11136 - ICE on incorrect module declaration https://github.com/D-Programming-Language/dmd/commit/bd75cde6cbd43bffb9f2bf3b7fa07862d2f7d598 Merge pull request #2606 from WalterBright/fix11136 fix Issue 11136 - ICE on incorrect module declaration