Passing null array to template

Jesse Phillips jessekphillips+d at gmail.com
Mon Jul 18 18:19:11 PDT 2011


On Mon, 18 Jul 2011 19:44:38 +0200, David Nadlinger wrote:

> On 7/18/11 7:43 PM, Jesse Phillips wrote:
>> I'm wondering if this should be filed in Bugzilla. I'm guessing it
>> should. The blow should compile?
>>
>> void main() {
>> 	example(null);
>> }
>>
>> void example()(string[] foo) {
>> }
>>
>> test.d(3): Error: template test.example() does not match any function
>> template declaration
>> test.d(3): Error: template test.example() cannot deduce template
>> function from argument types !()(void*)
> 
> If that doesn't compile, it is clearly a bug. Please do a quick search
> on Bugzilla and add this as a new issue if it is not already present.
> 
> Thanks,
> David

http://d.puremagic.com/issues/show_bug.cgi?id=2394

Also, what does ITFI stand for? Implemented Template Function Interface?


More information about the Digitalmars-d-learn mailing list