Thread overview
[Issue 1177] New: $ no longer works inside CTFE functions.
Apr 23, 2007
d-bugmail
Apr 27, 2007
d-bugmail
Apr 27, 2007
d-bugmail
April 23, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1177

           Summary: $ no longer works inside CTFE functions.
           Product: D
           Version: 1.013
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: clugdbug@yahoo.com.au


bug.d(5): Error: variable __dollar is used before initialization
bug.d(8): Error: cannot evaluate b() at compile time

Worked in DMD 1.012.
-------------
bool b()
{
    char [] a = "abc";
    return (a[$-1]=='b');
}

const c = b();

void main() {}


-- 

April 27, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1177


thomas-dloop@kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows                     |All




------- Comment #1 from thomas-dloop@kuehne.cn  2007-04-27 12:36 -------
Added to DStress as http://dstress.kuehne.cn/compile/i/interpret_06_A.d http://dstress.kuehne.cn/compile/i/interpret_06_B.d


-- 

April 27, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1177


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from bugzilla@digitalmars.com  2007-04-27 14:58 -------
Fixed DMD 1.014


--