Bug 63086

Summary: r++ hangs and leaks memory until killed by system.
Product: [Applications] kdevelop Reporter: Peter Antonius <peter.antonius>
Component: Language Support: CPP (old)Assignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED WORKSFORME    
Severity: crash    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The include files that provokes the problem

Description Peter Antonius 2003-08-21 21:37:00 UTC
Version:           Gideon CVS 2003-08-21 (using KDE KDE 3.1.1)
Installed from:    SuSE RPMs
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux) 
OS:          Linux

I have tried to run r++ on  /usr/include. When it tries to parse /usr/include/ptlib it starts to use all avaiable memory (2GB) and r++ is killed by the system. 

generate tags for ptlib/array.h
ptlib/array.h:699:185: Syntax Error before 'public'
ptlib/array.h:699:1090: Syntax Error before '['
ptlib/array.h:699:1109: Syntax Error before ')'
ptlib/array.h:699:1117: Syntax Error before '{'
ptlib/array.h:699:1144: Syntax Error before 'return'
Killed

I have seen the problem before in another include file that used #pragma interface (unfortnatly i forgot which one).
Comment 1 Peter Antonius 2003-08-21 21:40:50 UTC
Created attachment 2290 [details]
The include files that provokes the problem
Comment 2 Alexander Dymo 2003-09-13 12:38:50 UTC
Can not reproduce with KDevelop HEAD. 
Please update. If your problem persists, reopen this bug. 
Comment 3 Aleix Pol 2013-03-31 00:48:37 UTC
Moving all the bugs from the CPP Parser. It was not well defined the difference between it and C++ Language Support and people kept reporting in both places indistinctively