I was using Dev-C++ 5.6.1 TDM-GCC Portable. I accidentally had some bizarre syntax in my file ("free_faction_music(struct faction_music &freeMyContents){" was "free_faction_music(){struct faction_music &freeMyContents"). When I saved, it brought up an error box for me to send an error report, which I did twice. Both of those, however, occurred before I realized that I had made the syntax error shown above. I attached a screenshot of the error window, so I don't ruin some of the information in transfer.
It also had this stack trace in the error log:
Stack trace
00211E6A (00110E6A): TExceptionFrm.GetStackReport (ExceptionFrm - 403)
0021117D (0011017D): TEAnalyzer.EHandler (ExceptionFrm - 150)
002112DC (001102DC): TEAnalyzer.EHandler (ExceptionFrm - 159)
002112DC (001102DC): TEAnalyzer.EHandler (ExceptionFrm - 159)
002111BF (001101BF): TEAnalyzer.EHandler (ExceptionFrm - 157)
002111E9 (001101E9): TEAnalyzer.EHandler (ExceptionFrm - 157)
001CDD80 (000CCD80): TCppTokenizer.GetToken (CppTokenizer - 184)
001CDD80 (000CCD80): TCppTokenizer.GetToken (CppTokenizer - 184)
001D21A3 (000D11A3): TCppParser.CheckForSkipStatement (CppParser - 637)
001D21A3 (000D11A3): TCppParser.CheckForSkipStatement (CppParser - 637)
001D660C (000D560C): TCppParser.HandleStatement (CppParser - 1629)
001D68A3 (000D58A3): TCppParser.Parse (CppParser - 1687)
001D714E (000D614E): TCppParser.ReParseFile (CppParser - 1933)
001D714E (000D614E): TCppParser.ReParseFile (CppParser - 1933)
001D714E (000D614E): TCppParser.ReParseFile (CppParser - 1933)
00279029 (00178029): TEditor.Save (editor - 1688)
00279029 (00178029): TEditor.Save (editor - 1688)
00279029 (00178029): TEditor.Save (editor - 1688)
00279029 (00178029): TEditor.Save (editor - 1688)
00246129 (00145129): TMainForm.actSaveExecute (main - 2181)
001C20C6 (000C10C6): TCustomSynEdit.WndProc (SynEdit - 6036)
001F0001 (000EF001): DoSelect (ClassBrowser - 847)
001F0001 (000EF001): DoSelect (ClassBrowser - 847)
001F0001 (000EF001): DoSelect (ClassBrowser - 847)
001F0001 (000EF001): DoSelect (ClassBrowser - 847)
001F0001 (000EF001): DoSelect (ClassBrowser - 847)
001F0001 (000EF001): DoSelect (ClassBrowser - 847)
001F0001 (000EF001): DoSelect (ClassBrowser - 847)
001F0001 (000EF001): DoSelect (ClassBrowser - 847)
001F0001 (000EF001): DoSelect (ClassBrowser - 847)
001F0001 (000EF001): DoSelect (ClassBrowser - 847)
Version: 5.6.1
OS Version: Windows 7 Professional 64-bit (build 7600)
Steps to reproduce:
This function causes it, it does not appear to matter where in the file it is placed:
void free_faction_music(){struct faction_music &freeMyContents){
if (freeMyContents.playing)
free_song_list(freeMyContents.playing);
if (freeMyContents.victory)
free_song_list(freeMyContents.victory);
if (freeMyContents.defeat)
free_song_list(freeMyContents.defeat);
}
Trying the same syntax problem on other functions in the same file did not reproduce the issue. It may have something to do with the variable declared with the "&" (since this is written in C, I'm not 100% sure that is valid, which may contribute to the error the program encounters).
Fixed as of 5.6.2. Thank you for reporting.