D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15254 - is expression compares string sub-type equal to an array
Summary: is expression compares string sub-type equal to an array
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-28 11:00 UTC by Martin Nowak
Modified: 2022-10-13 07:57 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 Martin Nowak 2015-10-28 11:00:37 UTC
cat > bug.d << CODE
struct S
{
    string s;
    alias s this;
}
static assert(!is(S == U[], U)); // shouldn't be true
static assert(is(S : U[], U));
CODE
dmd -c bug
----

This was the actual cause for issue 15168.
Comment 1 steven kladitis 2015-11-02 21:36:07 UTC
1.d
------
void main() {}

------
try to compile in widows and I get.
--> 1.d: Error: module 1 has non-identifier characters in filename, use module declaration instead

a1.d
-----
void main() {}
--------

no errors during compile.
dmd 2.069.rc2
Comment 2 RazvanN 2022-10-13 07:57:41 UTC
Fixed by: https://github.com/dlang/dmd/pull/8839