http://d.puremagic.com/issues/show_bug.cgi?id=2981
Summary: Bad code generation for structs containing invariants Product: D Version: 2.029 Platform: PC OS/Version: Mac OS X Status: NEW Keywords: wrong-code Severity: normal Priority: P2 Component: DMD AssignedTo: bugzi...@digitalmars.com ReportedBy: s...@invisibleduck.org The addresses output in this test case should match: import core.stdc.stdio; struct S { this( string name ) { printf( "(ctor) &%.*s.x = %p\n", name, &x ); } invariant() {} int x; } void main() { auto s = new S("s2"); printf( "&s2.x = %p\n", &s.x ); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------