[Issue 6337] [CTFE] ICE when touching member variable of struct during CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 22 03:16:09 PDT 2011


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2011-07-22 03:16:07 PDT ---
Reduced test case:

struct Bug6337
{
    int k;
    void six() {
        k = 6;
    }
    int ctfe()
    {
        six();
        return k;
    }
}
static assert( Bug6337().ctfe() == 6);

-- 
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