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


Kenji Hara <k.hara...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE, ice
           Platform|x86                         |All
            Summary|ICE when passing 'ref'      |[CTFE] ICE when passing
                   |literal                     |'ref' literal
         OS/Version|Windows                     |All


--- Comment #1 from Kenji Hara <k.hara...@gmail.com> 2012-06-17 00:10:51 PDT ---
This is the CTFE problem on out of function scope.

struct G {}
struct F(T) { void f(ref T) {} }

pragma(msg, F!G().f(G.init));   // ICE
enum b = { F!G().f(G.init); return true; }();    // OK

void main()
{
    F!G().f(G.init);    // OK
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to