http://d.puremagic.com/issues/show_bug.cgi?id=8362


Jonathan M Davis <jmdavisp...@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisp...@gmx.com


--- Comment #1 from Jonathan M Davis <jmdavisp...@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: -------

Reply via email to