[Issue 7935] New: Struct-by-pointer field access in TypeTuple
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 17 14:42:50 PDT 2012
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 at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list