www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6268] New: [2.054 Beta Regression] std.string.strip no longer CTFE-able

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6268

           Summary: [2.054 Beta Regression] std.string.strip no longer
                    CTFE-able
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: cbkbbejeap mailinator.com



17:22:36 PDT ---
// test.d:
import std.string;
enum str = strip("");

2.053:
 dmd -c test.d
{works} 2.054:
 dmd -c test.d
D:\DevTool\dmd2beta\dmd2\windows\bin\..\..\src\phobos\std\string.d(1468): Error: _aApplycd2 cannot be interpreted at compile time, because it has no available s ource code D:\DevTool\dmd2beta\dmd2\windows\bin\..\..\src\phobos\std\string.d(1521): Error: cannot evaluate stripLeft(s) at compile time D:\DevTool\dmd2beta\dmd2\windows\bin\..\..\src\phobos\std\string.d(1521): Error: cannot evaluate stripRight(stripLeft(s)) at compile time testCtfeStrip.d(2): Error: cannot evaluate strip("") at compile time -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 07 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6268


Johann MacDonagh <johann.macdonagh gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johann.macdonagh gmail.com



15:20:09 PDT ---
I believe fixing this would also fix Issue 3512.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 08 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6268


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |DUPLICATE



This is an example of bug 3512.

*** This issue has been marked as a duplicate of issue 3512 ***

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