[Issue 13309] New: DMD accepts yet another invalid alias declaration

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Aug 16 19:28:54 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13309

          Issue ID: 13309
           Summary: DMD accepts yet another invalid alias declaration
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: briancschott at gmail.com

alias extern(Windows) HRESULT fnNtQuerySystemInformation( uint
SystemInformationClass, void* info, uint infoLength, uint* ReturnLength )
nothrow;

This does not match any documented form of alias declaration, yet it is
accepted by DMD.

Maybe this was supposed to be

alias fnNtQuerysystemInformation = extern(windows) HRESULT function( uint
SystemInformationClass, void* info, uint infoLength, uint* ReturnLength )
nothrow;

--


More information about the Digitalmars-d-bugs mailing list