[Issue 6322] New: IFTI doesn't support static arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 15 07:30:59 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6322
Summary: IFTI doesn't support static arrays
Product: D
Version: D1 & D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis <verylonglogin.reg at gmail.com> 2011-07-15 07:25:46 PDT ---
Maybe it duplicates some other issue, but I didn't find it.
Or maybe it is issue 2296.
void f(T: T[n], size_t n)(T[n] t) { }
void main()
{
int[2] a;
f!(typeof(a))(a); //this compiles
f(a); //this doesn't
}
main.d(7): Error: template main.f(T : T[n],uint n) does not match any function
template declaration
main.d(7): Error: template main.f(T : T[n],uint n) cannot deduce template
function from argument types !()(int[2u])
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list