www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8204] New: Alias causes error: "auto can only be used for template function parameters"

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

           Summary: Alias causes error: "auto can only be used for
                    template function parameters"
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: wfunction hotmail.com



void foo(T)(ref auto T v) { }
alias foo!int bar; // Error: auto can only be used for template function
parameters


While I understand this may be 'correct' in some sense, it makes templates a
lot more difficult to use.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 06 2012