[Issue 1017] New: CTFE doesn't support (string == string)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 3 04:33:01 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1017
Summary: CTFE doesn't support (string == string)
Product: D
Version: 1.007
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: reiner.pope at gmail.com
The following code fails in DMD 1.007:
void main()
{
static assert(equals("alphabet", "alphabet"));
}
bool equals(char[] a, char[] b)
{
return (a == b);
}
equality.d(3): static assert (equals("alphabet","alphabet")) is not
evaluatable
at compile time
--
More information about the Digitalmars-d-bugs
mailing list