Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 19, 2012 [Issue 7321] New: returning void considered unsafe by safety inference | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7321 Summary: returning void considered unsafe by safety inference Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: timon.gehr@gmx.ch --- Comment #0 from timon.gehr@gmx.ch 2012-01-19 09:51:50 PST --- In the following code, the second delegate literal is incorrectly inferred as unsafe: static assert(is(typeof((){})==void function()pure nothrow @safe)); // ok static assert(is(typeof((){return;})==void function()pure nothrow @safe));// fail Error: static assert (is(void function() pure nothrow == void function() pure nothrow @safe)) is false -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 26, 2012 [Issue 7321] returning void considered unsafe by safety inference | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=7321 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch, rejects-valid --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-01-26 05:49:58 PST --- https://github.com/D-Programming-Language/dmd/pull/642 This is a shortfall of fixing bug 6902. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 28, 2012 [Issue 7321] returning void considered unsafe by safety inference | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=7321 --- Comment #2 from github-bugzilla@puremagic.com 2012-01-28 12:56:51 PST --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/24d920a8d96ccee6394a3b4f987881956c071c54 Merge pull request #642 from 9rnsr/fix7321 Issue 7321 - returning void considered unsafe by safety inference -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 28, 2012 [Issue 7321] returning void considered unsafe by safety inference | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=7321 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: ------- |
Copyright © 1999-2021 by the D Language Foundation