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

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to