[Issue 2377] New: ICE with wrong return type for templated method: template.c:784

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 27 07:37:15 PDT 2008


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

           Summary: ICE with wrong return type for templated method:
                    template.c:784
           Product: D
           Version: 2.019
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: dhasenan at gmail.com


Error message:
dmd: template.c:784: MATCH
TemplateDeclaration::deduceFunctionTemplateMatch(Loc, Objects*, Expression*,
Expressions*, Objects*): Assertion `i < parameters->dim' failed.
Aborted

Test case:
---
int call (TReturn) ()
{
    return "hello";
}

void main ()
{
    call!(void)();
}
---


-- 



More information about the Digitalmars-d-bugs mailing list