[Issue 4192] New: Certain CTF can't be evaluated anymore
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat May 15 09:16:51 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4192
Summary: Certain CTF can't be evaluated anymore
Product: D
Version: 1.057
Platform: Other
OS/Version: Linux
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: aziz.koeksal at gmail.com
--- Comment #0 from Aziz Köksal <aziz.koeksal at gmail.com> 2010-05-15 09:16:43 PDT ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list