Summary: error: this for variable needs to be Type not
           Product: D
           Version: 1.045
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD

This message is vague because it does not include any template parameters the
type may have. It is especially galling because the arguments are included in
the second part and not the first.

One fix is expression.c:270, check if ad->type is null. If it is, use the
current code. Otherwise, use ad->type->toChars rather that ad->toChars.

The other fix is to have AggregateDeclaration::toChars return type->toChars if
type is not null.

Since the latter is more general, I favor it.

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

Reply via email to