Thread overview
[Issue 2296] New: Function template parameterization on fixed array size does not work
Aug 20, 2008
d-bugmail
[Issue 2296] IFTI with parameterization on fixed array size does not work
Nov 24, 2008
d-bugmail
Feb 02, 2012
Kenji Hara
Nov 05, 2012
Denis Shelomovskij
August 20, 2008
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);
}


-- 

November 24, 2008
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




------- Comment #1 from smjg@iname.com  2008-11-24 09:41 -------
(In reply to comment #0)
> 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)


-- 

February 02, 2012
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


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2012-02-02 04:38:19 PST ---
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: -------
August 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=2296



--- Comment #3 from github-bugzilla@puremagic.com 2012-08-28 00:38:39 PDT ---
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 Merge pull request #431 from 9rnsr/fix6764

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: -------
November 05, 2012
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


--- Comment #4 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2012-11-05 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: -------