478 – can't compare arrayliteral statically with variable

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 478 - can't compare arrayliteral statically with variable
Summary: can't compare arrayliteral statically with variable
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 All
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2006年11月04日 00:44 UTC by Nazo Humei
Modified: 2015年06月09日 05:15 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Nazo Humei 2006年11月04日 00:44:39 UTC
don't work:
const char[] test=['a','b','c','d'];
static assert(test==['a','b','c','d']);
work:
static assert(['a','b','c','d']==['a','b','c','d']);
Comment 1 Walter Bright 2006年11月25日 04:02:16 UTC
Fixed DMD 0.175


AltStyle によって変換されたページ (->オリジナル) /