Bug 2233 – ICE(expression.c) when dot-referencing a name declared in multiple modules

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-07-17T09:46:00Z
Last change time
2015-06-09T01:19:59Z
Keywords
ice-on-invalid-code
Assigned to
nobody
Creator
samukha

Comments

Comment #0 by samukha — 2008-07-17T09:46:11Z
---- module a; void foo() {} ---- module b; void foo() {} ---- module c; import a, b; void bar() { .foo(); } ---- Assertion failure: '0' on line 5222 in file 'expression.c'
Comment #1 by clugdbug — 2009-08-06T23:58:29Z
This works in DMD2.031 and 1.046 Windows. c.d(5): Error: a.foo at a.d(2) conflicts with b.foo at b.d(2)