Don <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #2 from Don <> 2012-01-25 12:50:00 PST ---
Reduced test case:
struct S
    int member;
    @property ref int refCountedPayload() { return member; }
    alias refCountedPayload this;

// If you remove this next line, it works.
void foo(S)(immutable S t, int qq) pure { }
void foo(S)(S s) pure { }

void bar() pure
    S b;

The bug is in template.c, deduceFunctionTemplateMatch().
If a parameter fails to match (the immutable S above), it tries alias this. The
first is to run semantic on the alias this, which causes the error. Those error
messages should be suppressed.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to