Bug 63708

Summary: C++ Problem reporter confused by templates
Product: [Applications] kdevelop Reporter: Christian Prochnow <cproch>
Component: Language Support: CPP (old)Assignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: File with reported problems in it

Description Christian Prochnow 2003-09-04 12:00:14 UTC
Version:           3.0.0-CVS-HEAD (using KDE KDE 3.1.2)
Installed from:    Compiled From Sources
Compiler:          gcc version 3.2 20020903 
OS:          Linux

The c++ problem reporter seems to have problems with some template classes. I will attach a header file that you can reproduce it.
Comment 1 Christian Prochnow 2003-09-04 12:04:31 UTC
Created attachment 2368 [details]
File with reported problems in it

The problem reporter sees problems on line  94, 97, 98 (class Signal0)
However on a similar class (Signal1) or the specialization of Signal0 the
problem reporter does not see these problems.
The file compiles well. 
The problem reporter does'nt seem to analyze the template variables.
Comment 2 Jens Dagerbo 2006-12-29 09:50:45 UTC
Problem is with the parser, not the Problems display widget.
Comment 3 Jens Dagerbo 2006-12-31 03:58:57 UTC
AFAICT, the problem isn't with the template, it's simply that the C++ parser assumes "emit" "signal" and "slot" to be Qt keywords.
Comment 4 Jens Dagerbo 2006-12-31 04:04:01 UTC
I just realize we have a dupe of this.. The other report has a better description. Closing as dupe.

*** This bug has been marked as a duplicate of 136464 ***
Comment 5 Aleix Pol 2013-03-31 00:56:35 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