Thread overview
[Issue 9743] New: IFTI and polymorphic string literal should support implicit conversion to static array type
Mar 18, 2013
Kenji Hara
Mar 18, 2013
Kenji Hara
Mar 18, 2013
Martin Nowak
Mar 27, 2013
Kenji Hara
March 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9743

           Summary: IFTI and polymorphic string literal should support
                    implicit conversion to static array type
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: k.hara.pg@gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2013-03-18 01:52:58 PDT ---
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
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9743


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-03-18 02:00:49 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: -------
March 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9743


Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu


--- Comment #2 from Martin Nowak <code@dawg.eu> 2013-03-18 07:54:14 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9743



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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 27, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9743


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: -------