[Issue 8362] safe function 'benchmark' cannot call system function literal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 8 18:06:21 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8362
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmdavisProg at gmx.com
--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-07-08 18:06:13 PDT ---
Pull request https://github.com/D-Programming-Language/phobos/pull/670 happens
to fix the issue with benchmark but not the underlying bug.
This code also shows it:
import std.traits;
void test(fun...)()
if(areAllSafe!fun)
{}
struct S{ auto fun() { return 1; } }
void main()
{
auto s1 = S();
static assert(!isSafe!({auto r = s1.fun();}));
}
I believe that it's a bug in std.traits.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list