Thread overview |
---|
October 10, 2007 [Issue 1565] New: ctfe compile-time function fails when the type of a struct member is a struct with multiple members | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1565 Summary: ctfe compile-time function fails when the type of a struct member is a struct with multiple members Product: D Version: 1.022 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: gamerChad@gmail.com Here's the example: struct B { int z = 5; int w = 4; // remove this line and it compiles fine. } struct A { B y; } int crash() { A x; return x.y.z; } const foo = crash(); void main() {}; When compiled, this yields the following error: main.d(18): Error: cannot evaluate crash() at compile time This happened with DMD 1.022 and 1.021, on Windows XP, with both Phobos and Tango. -- |
April 10, 2008 [Issue 1565] ctfe compile-time function fails when the type of a struct member is a struct with multiple members | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1565 samukha@voliacable.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |major ------- Comment #1 from samukha@voliacable.com 2008-04-10 02:34 ------- Increasing the severity because workarounds are ugly and will be pain to clean up after the bug is fixed. The bug is also present in DMD 2.012 -- |
July 24, 2009 [Issue 1565] ctfe compile-time function fails when the type of a struct member is a struct with multiple members | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1565 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug@yahoo.com.au --- Comment #2 from Don <clugdbug@yahoo.com.au> 2009-07-24 04:48:22 PDT --- This works for me on both D1 and D2. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 17, 2009 [Issue 1565] ctfe compile-time function fails when the type of a struct member is a struct with multiple members | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1565 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Don <clugdbug@yahoo.com.au> 2009-08-17 02:39:32 PDT --- I have confirmed that this bug existed in DMD1.020, but was fixed by 1.041. -- 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