Bug 21411 – import in eponymous IFTI does not work correctly

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-11-21T04:44:16Z
Last change time
2021-02-21T05:43:50Z
Assigned to
No Owner
Creator
Adam D. Ruppe

Comments

Comment #0 by destructionator — 2020-11-21T04:44:16Z
Seems similar to but distinct from https://issues.dlang.org/show_bug.cgi?id=6501 --- bugz.d template bug() { import bugz2; void bug(S) {} } void main() { import bugz2; bug(S()); } --- bugz2.d struct S {} --- bugz.d(4): Error: undefined identifier S bugz.d(9): Error: template bugz.bug cannot deduce function from argument types ()(S), candidates are: bugz.d(2): bug()(S) DMD64 D Compiler v2.094.0-beta.1 Note that if it isn't IFTI - use `bug!()(S());` or any other form of explicit instantiation - then it is fine.
Comment #1 by boris2.9 — 2021-02-21T05:43:50Z
*** This issue has been marked as a duplicate of issue 13737 ***