[Issue 8462] New: recursive alias error with function pointer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 29 09:53:09 PDT 2012


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

           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 at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at 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: -------


More information about the Digitalmars-d-bugs mailing list