[Issue 10171] New: Unexpected error "cannot infer type from overloaded function symbol"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 26 01:50:14 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10171

           Summary: Unexpected error "cannot infer type from overloaded
                    function symbol"
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-05-26 01:50:08 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list