Summary: Struct-by-pointer field access in TypeTuple
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-04-17 14:43:43 PDT ---
This is wrong D2 code:

import std.typecons: TypeTuple;
struct Node {
    Node* left, right;
void main() {
    Node* n = new Node();
    auto le = n.left;
    auto t = TypeTuple!(n.left);

DMD 2.059 gives this error message, but I think it's better to give a different
error message:

test.d(8): Error: no property 'left' for type 'Node*'

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

Reply via email to