[Issue 7062] New: Void parameter errors with overloaded templates don't indicate instantiation location

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 3 07:36:31 PST 2011


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

           Summary: Void parameter errors with overloaded templates don't
                    indicate instantiation location
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: thecybershadow at gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 2011-12-03 07:35:25 PST ---
This program gives a "cannot have parameter of type void" at line 1, but no
errors at the instantiation site (inside main):

void f(T...)(T a)
if (T.length > 1)
{}

void f(T)(T a)
{}

void g() {}

void main()
{
    f(g());
}

-- 
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