www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12292] New: Template specialization ": string" passes for static arrays of other types

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

           Summary: Template specialization ": string" passes for static
                    arrays of other types
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow gmail.com> 2014-03-03
18:39:38 EET ---
////////// 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.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 03 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12292


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

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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2014-03-03 21:36:36 PST ---
https://github.com/D-Programming-Language/dmd/pull/3356

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 03 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12292



--- Comment #2 from github-bugzilla puremagic.com 2014-03-04 05:27:15 PST ---
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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 04 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12292


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

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


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 04 2014