Thread overview | ||||||
---|---|---|---|---|---|---|
|
June 03, 2011 [Issue 6096] New: optimizer assert on cdouble to bool conversion | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6096 Summary: optimizer assert on cdouble to bool conversion Product: D Version: unspecified Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: r.sagitario@gmx.de --- Comment #0 from Rainer Schuetze <r.sagitario@gmx.de> 2011-06-03 00:52:36 PDT --- this code: cdouble c; int main() { if (c) return 0; return 1; } compiles with dmd 2.053 unless optimizations are turned on: c:\tmp>c:\l\dmd-2.053\windows\bin\dmd -O ccmp.d Internal error: ..\ztc\el.c 904 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 15, 2011 [Issue 6096] optimizer assert on cdouble to bool conversion | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rainer Schuetze | http://d.puremagic.com/issues/show_bug.cgi?id=6096 --- Comment #2 from Rainer Schuetze <r.sagitario@gmx.de> 2011-10-15 02:12:04 PDT --- https://github.com/D-Programming-Language/dmd/pull/452 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 24, 2011 [Issue 6096] optimizer assert on cdouble to bool conversion | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rainer Schuetze | http://d.puremagic.com/issues/show_bug.cgi?id=6096 Rainer Schuetze <r.sagitario@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code --- Comment #3 from Rainer Schuetze <r.sagitario@gmx.de> 2011-10-23 23:35:04 PDT --- Considering the patch, I realized that double c = 0.5; void main() { assert((c ? 0 : 1) == 0); } runs fine when compiled without -O, but asserts with -O. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 23, 2012 [Issue 6096] optimizer assert on cdouble to bool conversion | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rainer Schuetze | http://d.puremagic.com/issues/show_bug.cgi?id=6096 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |FIXED --- Comment #4 from yebblies <yebblies@gmail.com> 2012-02-23 19:48:19 EST --- The patch was merged 3 months ago. https://github.com/D-Programming-Language/dmd/commit/58507a208e12d0b7e44111f5eabd6747e5d79925 -- 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