Bug 12292 – Template specialization ": string" passes for static arrays of other types

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-03T08:39:00Z
Last change time
2014-03-04T05:34:17Z
Keywords
accepts-invalid, pull
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2014-03-03T08:39:38Z
////////// test.d ////////// void fun(T : string)(T data) { string sdata = data; } void test() { ubyte[3] sa; fun(sa); } //////////////////////////// The specialization passes, and then the assignment inside the function fails to compile.
Comment #1 by k.hara.pg — 2014-03-03T21:36:36Z
Comment #2 by github-bugzilla — 2014-03-04T05:27:15Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/018a4fe7782b670ed44063ac0f6b3552d05689ef fix Issue 12292 - Template specialization ": string" passes for static arrays of other types https://github.com/D-Programming-Language/dmd/commit/554c68733a3656fa263a08d23652d512d24871ef Merge pull request #3356 from 9rnsr/fix12292 Issue 12292 - Template specialization ": string" passes for static arrays of other types