Thread overview
[Issue 6268] New: [2.054 Beta Regression] std.string.strip no longer CTFE-able
Jul 08, 2011
Nick Sabalausky
Jul 08, 2011
Johann MacDonagh
Jul 22, 2011
Don
July 08, 2011
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


--- Comment #0 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2011-07-07 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: -------
July 08, 2011
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


--- Comment #2 from Johann MacDonagh <johann.macdonagh@gmail.com> 2011-07-08 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: -------
July 22, 2011
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


--- Comment #3 from Don <clugdbug@yahoo.com.au> 2011-07-22 04:30:24 PDT ---
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: -------