Bug 10171 – Unexpected error "cannot infer type from overloaded function symbol"
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-26T01:50:00Z
Last change time
2013-05-26T07:54:52Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2013-05-26T01:50:08Z
In this code, x is a variable and is not overloaded function symbol.
struct Foo {}
struct B(T) { static Foo x; }
void main()
{
auto mp = &B!(B!int).x; // line 7
}
test.d(7): Error: cannot infer type from overloaded function symbol & x