← Back to index
|
Original Bugzilla link
Bug 8907 – Selective import of a symbol after its first usage causes errors (including ICE)
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-29T06:14:00Z
Last change time
2013-04-06T06:34:41Z
Keywords
ice, rejects-valid
Assigned to
nobody
Creator
verylonglogin.reg
Comments
Comment #0
by verylonglogin.reg — 2012-10-29T06:14:56Z
--- import core.stdc.config; void f(c_ulong) { } import core.stdc.config: c_ulong; void main() { f(3); // line 9 } --- Compiler output: --- main.d(9): Error: function main.f (c_ulong _param_0) is not callable using argument types (int) main.d(9): Error: forward reference to type c_ulong main.d(9): Error: cannot implicitly convert expression (3) of type int to c_ulong --- --- import core.stdc.config; c_ulong a; import core.stdc.config: c_ulong; void main() { a = 3; } --- Compiler output: --- Assertion failure: 'fd && fd->inferRetType' on line 81 in file 'mangle.c' ---
Comment #1
by k.hara.pg — 2013-04-06T06:34:41Z
The root cause is same as bug 9514, and test cases work with 2.053a. *** This issue has been marked as a duplicate of issue 9514 ***