[Issue 10739] New: Struct defined by template mixin leads to order-sensitivity of declarations
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 31 17:07:19 PDT 2013
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 at puremagic.com
ReportedBy: smjg at iname.com
Blocks: 340
--- Comment #0 from Stewart Gordon <smjg at iname.com> 2013-07-31 17:07:18 PDT ---
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: -------
More information about the Digitalmars-d-bugs
mailing list