D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3501 - (D1 only) "is null" comparison should be disallowed for fixed-size arrays
Summary: (D1 only) "is null" comparison should be disallowed for fixed-size arrays
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: accepts-invalid
Depends on:
Blocks:
 
Reported: 2009-11-13 08:38 UTC by Max Samukha
Modified: 2019-07-16 03:59 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Max Samukha 2009-11-13 08:38:09 UTC
At least 'a is null' in the following example should not compile:

void main()
{
    int[3] a = null;
    a = null;
    if (a is null){}
}
Comment 1 yebblies 2012-02-01 07:35:12 UTC
Fixed in D2 (2.058)