This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Resolving member in array of struct fails | ||
---|---|---|---|
Product: | cnd | Reporter: | fse <fse> |
Component: | Code Model | Assignee: | nnnnnk <nnnnnk> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Screenshot of the compiler's version dialog
Screenshot of the problem in Netbeans' edtitor window |
Description
fse
2011-04-04 13:45:47 UTC
hello, please, could you provide declaration of INPUT structure. with declaration from http://msdn.microsoft.com/en-us/library/ms646270%28v=vs.85%29.aspx I can not reproduce the issue. Created attachment 108184 [details]
Screenshot of the compiler's version dialog
Created attachment 108185 [details]
Screenshot of the problem in Netbeans' edtitor window
Hi The INPUT structure is declared on my system in this way: typedef struct tagINPUT { DWORD type; __MINGW_EXTENSION union { MOUSEINPUT mi; KEYBDINPUT ki; HARDWAREINPUT hi; } DUMMYUNIONNAME; } INPUT,*PINPUT,*LPINPUT; I added screenshots of my MinGW TDM version info window and of my Netbeans editor window showing the error as it is displayed on my 64 bit systems (I did not check on 32 bit). Hope this helps. Regards Friedemann Seebass minimal test case: typedef struct tagINPUT { DWORD type; __extension__ union { MOUSEINPUT mi; KEYBDINPUT ki; HARDWAREINPUT hi; } ; } INPUT,*PINPUT,*LPINPUT; int main(int argc, char** argv) { INPUT inputList[1]; inputList[0].mi.dx = 1; return 0; } |