[Issue 10504] New: Tuple error: no property 'offsetof' for type 'int'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 29 11:07:46 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10504
Summary: Tuple error: no property 'offsetof' for type 'int'
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: ibuclaw at ubuntu.com
--- Comment #0 from Iain Buclaw <ibuclaw at ubuntu.com> 2013-06-29 11:07:46 PDT ---
This test is one of the unittests in std.typecons.
https://github.com/D-Programming-Language/phobos/blob/master/std/typecons.d#L622
The autotester passes, so apparently it *should* work *somehow*, but trying to
compile std.typecons alone with -unittest fails with:
Error: no property 'offsetof' for type 'int'
Error: no property 'offsetof' for type 'double'
Among some other errors and a nice SEGV, but I'll ignore that for the time
being... This particular error is a show stopper for the autotester for gdc
passing.
Reduced test:
---
import std.typecons;
void main()
{
Tuple!(int, "a", double, "b") x;
static assert(x.a.offsetof == x[0].offsetof);
static assert(x.b.offsetof == x[1].offsetof);
}
--
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