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
Comment #1 by k.hara.pg — 2013-05-26T02:02:50Z
Comment #2 by github-bugzilla — 2013-05-26T07:54:29Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/fc49e9a3f77c4c92e4198fd0958b6254dae73091 fix Issue 10171 - Unexpected error "cannot infer type from overloaded function symbol" https://github.com/D-Programming-Language/dmd/commit/7db4045502a28aaf7eead9d56f3907d31945ef58 Merge pull request #2077 from 9rnsr/fix10171 Issue 10171 - Unexpected error "cannot infer type from overloaded function symbol"