[Issue 2176] Assertion failure: 'sz == es2->sz' on line 1339 in file 'constfold.c' (concatenating strings of different types)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 25 22:35:04 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2176
------- Comment #2 from davidl at 126.com 2008-06-26 00:35 -------
oh sorry, the patch for line 789 or so should be something
else if (e1->op == TOKstring && e2->op == TOKstring)
{ StringExp *es1 = (StringExp *)e1;
+++ if (sz != es2.sz)
+++ {
+++ cmp = 1;
+++ }
--- assert(es1->sz == es2->sz);
and another test case is:
pragma(msg, "foo"d == "bar"c? "A":"B");
this can trigger the Equal assertion failure
--
More information about the Digitalmars-d-bugs
mailing list