Bug 10739 – Struct defined by template mixin leads to order-sensitivity of declarations

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-07-31T17:07:18Z
Last change time
2019-05-25T06:06:09Z
Keywords
pull, rejects-valid
Assigned to
No Owner
Creator
Stewart Gordon
Blocks
340

Comments

Comment #0 by smjg — 2013-07-31T17:07:18Z
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 ----------
Comment #1 by dlang-bot — 2019-05-24T10:11:30Z
@RazvanN7 updated dlang/dmd pull request #9873 "Fix Issue 1170 - Cannot forward reference a type defined in a MixinStatement" fixing this issue: - Fix Issue 1170 and 10739 - Cannot forward reference a type defined in a MixinStatement https://github.com/dlang/dmd/pull/9873
Comment #2 by dlang-bot — 2019-05-25T06:06:09Z
dlang/dmd pull request #9873 "Fix Issue 1170 - Cannot forward reference a type defined in a MixinStatement" was merged into master: - 462fdccb04d93b37aebb02643253e281eb7e00e2 by RazvanN7: Fix Issue 1170 and 10739 - Cannot forward reference a type defined in a MixinStatement https://github.com/dlang/dmd/pull/9873