June 24, 2013 [Issue 10458] New: tuple of struct with unused member function | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10458 Summary: tuple of struct with unused member function Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: callumenator@gmail.com --- Comment #0 from callumenator@gmail.com 2013-06-23 23:21:38 PDT --- http://forum.dlang.org/thread/odqtleucashpjekvtjsv@forum.dlang.org DMD 2.063 Ali Çehreli's test case: import std.typecons; struct S { int x; // Bizarre: Comment-out this function to pass the assert in main. Tuple!(S) unused() { return tuple(S(7)); } } void main() { auto s = S(8); assert(tuple(s).expand[0] == S(8)); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation