[Issue 8687] Variadic templates do not work properly with default arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 6 23:41:40 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8687
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice |
CC| |bugzilla at digitalmars.com
--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> 2013-10-06 23:41:37 PDT ---
(In reply to comment #2)
> Please note that in 2.063 the compiler now ICEs on this unsupported feature:
>
> -----
> void foo(T...)(T args, string file = __FILE__) { }
>
> void main()
> {
> foo();
> }
> -----
>
> > Assertion failure: 'index < dim' on line 462 in file 'root\root.h'
With 2.064 head, produces:
test.d(5): Error: template test.foo does not match any function template
declaration. Candidates are:
test.d(1): test.foo(T...)(T args, string file = __FILE__)
test.d(5): Error: template test.foo(T...)(T args, string file = __FILE__)
cannot deduce template function from argument types !()()
Removed ice keyword.
--
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