[Issue 5671] CTFE string concat problem

2011-04-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5671


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


--- Comment #3 from Walter Bright bugzi...@digitalmars.com 2011-04-18 
16:02:31 PDT ---
https://github.com/D-Programming-Language/dmd/commit/316ba0a77e3934bfc8091940444f706e82aecc72

https://github.com/D-Programming-Language/dmd/commit/5c7c6b51e27d9cd394ddda4f7940cdf9c1610953

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


[Issue 5671] CTFE string concat problem

2011-03-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5671



--- Comment #2 from Don clugd...@yahoo.com.au 2011-03-05 17:56:46 PST ---
Can be reduced even further, showing CTFE isn't involved at all:

static assert( ['a', 'b'] ~ c == abc );

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


[Issue 5671] CTFE string concat problem

2011-03-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5671


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

 CC||clugd...@yahoo.com.au


--- Comment #1 from Don clugd...@yahoo.com.au 2011-03-01 05:08:35 PST ---
Reduced test case shows it is a constant folding problem.
['a', 'b'] ~ c doesn't get constant folded.

string foo5671() {
return ['a', 'b'];
}

string bug5671() {
return foo5671() ~ c;
}

static assert(bug5671() == abc);

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