digitalmars.D.bugs - [Issue 9309] New: Regression (2.061): -O -release generates wrong code
- d-bugmail puremagic.com (49/50) Jan 12 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9309
- d-bugmail puremagic.com (10/10) Jan 12 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9309
- d-bugmail puremagic.com (6/6) Jan 12 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9309
- d-bugmail puremagic.com (8/9) Jan 12 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9309
- d-bugmail puremagic.com (7/13) Jan 12 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9309
- d-bugmail puremagic.com (11/11) Jan 12 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9309
- d-bugmail puremagic.com (12/12) Jan 12 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9309
- d-bugmail puremagic.com (10/10) Jan 13 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9309
http://d.puremagic.com/issues/show_bug.cgi?id=9309 Summary: Regression (2.061): -O -release generates wrong code Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: coffimplib AssignedTo: nobody puremagic.com ReportedBy: andrej.mitrovich gmail.com 17:29:46 PST --- Reduced from Issue 9307: import std.exception; import std.stdio; pure nothrow private string escapeShellArguments() { char[] buf; safe nothrow char[] allocator(size_t size) { return buf = new char[size]; } escapeShellArgument!allocator("foo"); return assumeUnique(buf); } safe nothrow auto escapeShellArgument(alias allocator)(in char[] arg) { auto buf = allocator(4); buf[0] = 'f'; buf[1] = 'o'; buf[2] = 'o'; buf[3] = '\0'; } void main(string[] args) { string res = escapeShellArguments(); writeln(res); } $ dmd test.d && test.exefoo$ dmd test.d -release -O && test.exeIf you remove the safe nothrow and pure attributes the bug goes away. Cannot reproduce in 2.060, so this is a regression. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 12 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9309 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |londey gmail.com 17:30:20 PST --- *** Issue 9307 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: -------
Jan 12 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9309 17:43:16 PST --- I'm bisecting right now. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 12 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9309 17:44:56 PST ---I'm bisecting right now.Git says: b6a809346a43c7fbf350bd4181d350dd9b2cd4e6 is the first bad commit -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 12 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9309 17:46:19 PST ---See https://github.com/D-Programming-Language/dmd/pull/1110 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------I'm bisecting right now.Git says: b6a809346a43c7fbf350bd4181d350dd9b2cd4e6 is the first bad commit
Jan 12 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9309 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull Component|coffimplib |DMD https://github.com/D-Programming-Language/dmd/pull/1474 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 12 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9309 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a3373759c41931171a5fd023ab7df8e9f1689879 fix Issue 9309 - Regression (2.061): -O -release generates wrong code In current, all nested functions should be weak purity at most. https://github.com/D-Programming-Language/dmd/commit/7686d93349861f83e7c8adc1e0fad0f36f932e64 Issue 9309 - Regression (2.061): -O -release generates wrong code -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 12 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9309 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: -------
Jan 13 2013