[Issue 8285] Issue with slice returned from CTFE function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 23 01:49:25 PDT 2012


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au
         Depends on|                            |7988


--- Comment #2 from Don <clugdbug at yahoo.com.au> 2012-08-23 01:49:22 PDT ---
In the second example, adding the line

+ enum unused_enum = T1!();

string baz()
{
    return T1!();
}

makes the code work. It's because the const-folding code outside of CTFE is not
as sophisticated as the code inside 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