[Issue 8255] [CTFE] ICE when passing 'ref' literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 17 00:08:34 PDT 2012


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


Kenji Hara <k.hara.pg at 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.pg at 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: -------


More information about the Digitalmars-d-bugs mailing list