www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8462] New: recursive alias error with function pointer


           Summary: recursive alias error with function pointer
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com

--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2012-07-29
09:53:06 PDT ---
alias void function(Class.Type arg) FuncPtr;

class Class
    enum Type { Foo }
    alias FuncPtr* funcPtrPtr;

void main() { }

test.d(3): Error: alias test.FuncPtr recursive alias declaration

If you move "FuncPtr" below the class it works.

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