Bug 4192 – Regression (1.061, D1 only): Certain CTFs can't be evaluated anymore
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Linux
Creation time
2010-05-15T09:16:00Z
Last change time
2014-02-15T02:19:25Z
Keywords
rejects-valid
Assigned to
nobody
Creator
aziz.koeksal
Comments
Comment #0 by aziz.koeksal — 2010-05-15T09:16:43Z
This bug actually concerns version 1.061 (bugzilla's list is not up-to-date).
Managed to prepare a small test case:
class A {
static uint actf(char[] s)
{
return s.length;
}
static assert(actf("abcd") == 4);
pragma(msg, actf("abcd") == 4);
}
The static assert will trigger an error. If you comment out the pragma statement, it will compile. The pragma is not really meaningful and doesn't appear in my code, but I couldn't find another way to trigger the bug. If this is fixed, I believe my code will work, too.
Comment #1 by clugdbug — 2010-06-07T04:42:01Z
Fixed in svn commit 498.
*** This issue has been marked as a duplicate of issue 4210 ***