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.