Bug 9747 – IFTI argument deduction fails for committed string literals which are implicitly converted to a static array

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-18T07:24:00Z
Last change time
2013-04-08T21:24:31Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2013-03-18T07:24:42Z
cat > bug.d << CODE void fooA(T)(T[4]) {} void fooC(size_t dim)(char[dim]) {} void fooW(size_t dim)(wchar[dim]) {} void fooD(size_t dim)(dchar[dim]) {} void bar() { fooA("abcd"c); fooA("abcd"w); fooA("abcd"d); fooC("abcd"c); fooW("abcd"w); fooD("abcd"d); } CODE dmd -c bug
Comment #1 by k.hara.pg — 2013-03-18T07:44:54Z
Comment #2 by github-bugzilla — 2013-03-18T07:57:04Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/eed811093972ac84c7237bb5724261cca8960e47 fix Issue 9747 - IFTI argument deduction fails for committed string literals which are implicitly converted to a static array