[Issue 8253] CTFE ICE: calling of member function of non-CTFE class variable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 20 23:43:38 PDT 2012


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE, ice
                 CC|                            |clugdbug at 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 <clugdbug at 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: -------


More information about the Digitalmars-d-bugs mailing list