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


Don <clugd...@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE, ice
                 CC|                            |clugd...@yahoo.com.au
           Platform|x86_64                      |All
            Version|D2                          |D1 & D2
            Summary|ctfe stack assertion failed |CTFE ICE: calling of member
                   |                            |function of non-CTFE class
                   |                            |variable
         OS/Version|Linux                       |All


--- Comment #1 from Don <clugd...@yahoo.com.au> 2012-09-20 23:44:34 PDT ---
Further reduced:
----------------
class Bug8253 {
    bool j(){
        return true;
    }
}
Bug8253 m8253;
static assert(m8253.j());
----------------
Also applies to D1.

The problem is that the 'variable cannot be read at compile error' is generated
by constant folding, not by CTFE. Fixing bug 7988 would fix this.

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

Reply via email to