← Back to index
|
Original Bugzilla link
Bug 9743 – IFTI and polymorphic string literal should support implicit conversion to static array type
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-18T01:52:00Z
Last change time
2013-03-27T05:16:26Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0
by k.hara.pg — 2013-03-18T01:52:58Z
Sample code: void main() { void testc()(ref immutable char[4] str) { } testc("1234"); // works, OK void testw()(ref immutable wchar[4] str) { } testw("1234"); // should work, but doesn't }
Comment #1
by k.hara.pg — 2013-03-18T02:00:49Z
https://github.com/D-Programming-Language/dmd/pull/1761
Comment #2
by code — 2013-03-18T07:54:14Z
cat > bug.d << CODE void foo(ref in wchar[4]) {} void bar() { foo("abcd"); } CODE dmd -c bug ---- This also happens with functions and is not restricted to IFTI.
Comment #3
by github-bugzilla — 2013-03-18T07:57:07Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/1877c84d16a553c8686439506e4b7a9e03476f1f
fix Issue 9743 - IFTI and polymorphic string literal should support implicit conversion to static array type Support (non-)polymorphic string argument
https://github.com/D-Programming-Language/dmd/commit/6b634f369a53cdc297d0f41c50d03f8b091ea074
Merge pull request #1761 from 9rnsr/ct_boundary Issue 9743 - IFTI and polymorphic string literal should support implicit conversion to static array type