digitalmars.D.bugs - [Issue 10739] New: Struct defined by template mixin leads to order-sensitivity of declarations
- d-bugmail puremagic.com (32/32) Jul 31 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10739
http://d.puremagic.com/issues/show_bug.cgi?id=10739 Summary: Struct defined by template mixin leads to order-sensitivity of declarations Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: smjg iname.com Blocks: 340 Using DMD 2.063. Not sure if this is related to bug 275 or some other. ---------- template DECLARE_HANDLE() { struct HINTERNET { int h; } } const INTERNET_INVALID_STATUS_CALLBACK = cast(INTERNET_STATUS_CALLBACK) -1; mixin DECLARE_HANDLE; alias void function(HINTERNET) INTERNET_STATUS_CALLBACK; ---------- C:\Users\Stewart\Documents\Programming\D\win32>dmd -c wininet.d wininet.d(9): Error: undefined identifier HINTERNET ---------- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 31 2013