digitalmars.D.bugs - [Issue 7935] New: Struct-by-pointer field access in TypeTuple
- d-bugmail puremagic.com (30/30) Apr 17 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7935
http://d.puremagic.com/issues/show_bug.cgi?id=7935 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 AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc --- Comment #0 from bearophile_hugs eml.cc 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 17 2012