Bug 12372 – Forward reference error with auto type inference in overloaded functions

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-15T03:11:00Z
Last change time
2017-07-07T21:35:10Z
Assigned to
nobody
Creator
yazan.dabain

Comments

Comment #0 by yazan.dabain — 2014-03-15T03:11:16Z
Test case: auto foo(int) { return foo(1.0); } auto foo(double) { return 0; } void main() { auto boo = foo(0); } main.d(2): Error: forward reference to foo
Comment #1 by dlang-bugzilla — 2017-07-07T21:35:10Z