Please can someone help solve this? I can't clearly reduce this to a test case, so to avoid a flood I'll limit this to the clearest indications I have.
LRESULT CALLBACK WndProc(HWND hFrame,UINT msg,WPARAM wParam,LPARAM lParam) { switch(msg) { case WM_COMMAND: switch(LOWORD(wParam)) { case M_F_Exit: PostMessage(hFrame,WM_CLOSE,0,0); break; //ret; case M_H_About: int ret=DialogBox(GetModuleHandle(NULL),MAKEINTRESOURCE(D_About),hFrame,D_AboutProc); Note the "int ret=..." declaration, and the comment two lines higher. If I move the "int " to the point immediately following the comment's // chars and remove the //, the program compiles and runs fine. The source I adapted this from makes it as you see it above, the int declared inside the case statement. The original compiles and runs, but mine doesn't (unless I omit the case statement that has this problem, then it runs fine).. What makes this a real noodle-baker is that I can't see anything wrong in my code no matter how hard I look, or no matter what I try to eliminate! And neither can GCC, which is perfectly happy either way I declare that int. So is this a known TCC problem? I see people asking (via Google) but I see no answers I can use. Or answers specifc to this issue, it usually crops up amidst a lot of errors people asked about. I tried the recent snapshot of TCC, same thing happens there too. If there is a simple answer, it appears to be lost in a remote context I can't isolate. _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/tinycc-devel