Thread overview
[Issue 6435] New: Regression (2.054) Cannot append to a string member of a struct in CTFE
Aug 03, 2011
Max Samukha
Aug 04, 2011
Max Samukha
Aug 04, 2011
Don
Aug 04, 2011
Max Samukha
August 03, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6435

           Summary: Regression (2.054) Cannot append to a string member of
                    a struct in CTFE
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: samukha@voliacable.com


--- Comment #0 from Max Samukha <samukha@voliacable.com> 2011-08-03 11:19:10 PDT ---
struct S
{
    string bar;
}

int foo()
{
    S s;
    s.bar = "one"; // compiles if this is commented out
    s.bar ~= "two";
    return 0;
}

auto x = foo();

void main()
{
}

Error: s.bar ~= "two" cannot be evaluated at compile time

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 04, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6435


Max Samukha <samukha@voliacable.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 04, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6435


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

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


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2011-08-04 05:26:53 PDT ---
This has already been fixed in git.

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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 04, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6435



--- Comment #2 from Max Samukha <samukha@voliacable.com> 2011-08-04 07:35:26 PDT ---
Great, thanks!

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