[Issue 5693] New: Problem with address of template struct opCall

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 3 17:43:47 PST 2011


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

           Summary: Problem with address of template struct opCall
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-03-03 17:40:53 PST ---
struct Foo {
    void opCall(T)() {}
}
void main() {
    auto x = &Foo();
}


DMD 2.052 shows:

test.d(5): Error: template test.Foo.opCall(T) does not match any function
template declaration
test.d(5): Error: template test.Foo.opCall(T) cannot deduce template function
from argument types !()()

And then dmd crashes.
(I am not sure the keyword below is correct.)

-- 
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