digitalmars.D.bugs - [Issue 7911] New: Nested static if failing to execute
- d-bugmail puremagic.com (36/36) Apr 14 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7911
- d-bugmail puremagic.com (11/11) Apr 15 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7911
- d-bugmail puremagic.com (8/8) Apr 15 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7911
- d-bugmail puremagic.com (8/8) Apr 15 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7911
- d-bugmail puremagic.com (8/8) Apr 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7911
- d-bugmail puremagic.com (8/8) Apr 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7911
- d-bugmail puremagic.com (10/10) Apr 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7911
- d-bugmail puremagic.com (8/8) May 25 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7911
http://d.puremagic.com/issues/show_bug.cgi?id=7911 Summary: Nested static if failing to execute Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: marcianx gmail.com I tried this on the DMD64 D compiler v2.059 on linux. The valid D code at the bottom fails with the following errors when I invoke -------------------- $ rdmd static_if_bug.d static_if_bug.d(15): Error: undefined identifier 'foo' -------------------- Commenting out either "Bug trigger" below results in a successful compilation. -------------------- struct Klass { double value; //static const Klass zero; // Does not trigger bug! static if (true) Klass foo() { return Klass(); } } void main() { auto a = Klass().foo(); } -------------------- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 14 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7911 Peter Alexander <peter.alexander.au gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter.alexander.au gmail.co | |m 07:50:50 PDT --- *** Issue 7915 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 15 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7911 Peter Alexander <peter.alexander.au gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |regression -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 15 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7911 07:54:16 PDT --- Increased to regression because this code works in 2.058. Workaround: move the definition of foo before the definition of zero. It's a forward reference issue. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 15 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7911 Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e558866cdd8c26daf90942ee6dd89e814347911b fix Issue 7911 - Nested static if failing to execute -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 16 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7911 Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0fb6a474ccfd041c02d6d66a41b8bc46663aa180 fix Issue 7911 - Nested static if failing to execute -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 16 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7911 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 16 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7911 Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4d1a87507e737e0feaad789e2ebf0689b80a77d7 Add test for issue 7911 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 25 2012