www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2296] New: Function template parameterization on fixed array size does not work

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

           Summary: Function template parameterization on fixed array size
                    does not work
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: andrei metalanguage.com


The test says it all:

void f(uint D)(int i[D]...)
{
}

void main()
{
    f(1, 2, 3);
}


-- 
Aug 19 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2296


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com
         OS/Version|Linux                       |All
            Summary|Function template           |IFTI with parameterization
                   |parameterization on fixed   |on fixed array size does not
                   |array size does not work    |work
            Version|unspecified                 |1.036






 The test says it all:
No it doesn't. It doesn't tell anybody what happens when you try this code. bz2296.d(7): template bz2296.f(uint D) does not match any template declaration bz2296.d(7): template bz2296.f(uint D) cannot deduce template function from argument types (int,int,int) --
Nov 24 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2296


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
           Platform|x86                         |All
            Version|1.036                       |D1 & D2



D2 has same problem, and I've posted pull request for D2 branch:

https://github.com/D-Programming-Language/dmd/pull/431

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 02 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2296




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/34e1b767e9c78f728523ab2ccb5f2d1f377e0ed4
Issue 2296 - IFTI with parameterization on fixed array size does not work

https://github.com/D-Programming-Language/dmd/commit/a5c56ac957035efc142ad4a1123c6b138f1e4a15


Issue 2296 & 6764 - IFTI fails on typesafe variadic function

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 28 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2296


Denis Shelomovskij <verylonglogin.reg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |verylonglogin.reg gmail.com
            Version|D1 & D2                     |D1



09:33:50 MSK ---
It is fixed for D2.

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