Class with unnamed template causes parts of template to be highlighted as it would be wrongly defined. Compilation is OK. Reproducible: Always Steps to Reproduce: 1. Copy code from pastebin to empty C++ project. 2. 3. Actual Results: Parser displays errors in template definition highlighted with red. Expected Results: No error highlighting.
I don't see any pastebin link. In any case though, it's probably best if you can paste the minimal test case in a comment here. Thanks for the report.
Created attachment 75054 [details] Sample code to test unnamed templates parsing
Git commit fba923e87c81017bd18b73aa887d658c322f4ffe by Olivier JG. Committed on 08/12/2012 at 16:35. Pushed by olivierjg into branch 'master'. Allow template parameters to have default arguments without having identifiers. Add cpp file test to test default argument behavior (in template and function contexts). Add some new cpp json tests to support (templateContext, templateParameterDefault) M +12 -13 languages/cpp/parser/parser.cpp M +23 -0 languages/cpp/tests/cppjsontests.h A +45 -0 languages/cpp/tests/cpptestfiles/defaultparameters.cpp [License: LGPL (v2)] http://commits.kde.org/kdevelop/fba923e87c81017bd18b73aa887d658c322f4ffe
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