www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9747] New: IFTI argument deduction fails for committed string literals which are implicitly converted to a static array

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9747

           Summary: IFTI argument deduction fails for committed string
                    literals which are implicitly converted to a static
                    array
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: code dawg.eu


--- Comment #0 from Martin Nowak <code dawg.eu> 2013-03-18 07:24:42 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 18 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9747


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-03-18 07:44:54 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1761

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 18 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9747



--- Comment #2 from github-bugzilla puremagic.com 2013-03-18 07:57:04 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 18 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9747


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 08 2013