Thread overview
[Issue 3812] New: Missing line number for implicit cast of variadic function to array
Feb 18, 2010
Don
Feb 01, 2012
yebblies
Feb 04, 2012
yebblies
Feb 22, 2012
Walter Bright
February 18, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3812

           Summary: Missing line number for implicit cast of variadic
                    function to array
           Product: D
           Version: 2.038
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: clugdbug@yahoo.com.au


--- Comment #0 from Don <clugdbug@yahoo.com.au> 2010-02-18 07:16:12 PST ---
T[] toArray(T)(T[] values...)
{
    return values.dup;
}

int[] array = toArray(1.0,2.0,3.0);

----
Error: cannot implicitly convert expression ([1,2,3]) of type double[] to int[]

Only applies in 2.038 and later. Behaviour in D2.037 was different; old behaviour still happens in D1.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 01, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3812


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |yebblies@gmail.com
           Platform|Other                       |All
            Version|2.038                       |D1 & D2
         AssignedTo|nobody@puremagic.com        |yebblies@gmail.com
         OS/Version|Windows                     |All
           Severity|normal                      |critical


--- Comment #1 from yebblies <yebblies@gmail.com> 2012-02-02 03:06:51 EST ---
https://github.com/D-Programming-Language/dmd/pull/680

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 04, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3812



--- Comment #2 from yebblies <yebblies@gmail.com> 2012-02-04 18:25:41 EST ---
*** Issue 7434 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 22, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3812



--- Comment #3 from github-bugzilla@puremagic.com 2012-02-21 22:17:30 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/67ba76638878f0752f9875d22c23bf4e034d2b89 Merge pull request #680 from yebblies/issue3812

Issue 3812 - Missing line number for implicit cast of variadic function to array

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 22, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3812



--- Comment #4 from github-bugzilla@puremagic.com 2012-02-21 23:03:36 PST ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/24dd30b16be51534076f79f2e2ba7b786b7a1b10
fix Issue 3812 - Missing line number for implicit cast of variadic function to
array

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 22, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3812


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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