Bug 331865

Summary: Inner type in array var declaration not highlighted
Product: [Applications] kdevelop Reporter: Nicolás Alvarez <nalvarez>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: cponnapalli
Priority: NOR    
Version First Reported In: 4.6.1   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.0.0
Sentry Crash Report:
Attachments: Screenshot showing the highlighting of the Inner identifier in the initialization of the array and the variable type

Description Nicolás Alvarez 2014-03-08 00:12:42 UTC
In this code:
struct Root {
  struct Inner {};
};
Root::Inner foo[] = { Root::Inner() };

The 'Inner' identifier in the initialization of the array is highlighted properly, but the 'Inner' in the variable type is not. Removing the brace initialization makes the problem go away.
Comment 1 chaitanya srinivas ponnapalli 2016-04-22 07:16:14 UTC
Created attachment 98504 [details]
Screenshot showing the highlighting of the Inner identifier in the initialization of the array and the variable type

1. Executed the code as provided.
2. As shown in the screenshot, the inner identifier in the Initialization of the array, as well as in the variable type is highlighted properly.
Comment 2 Kevin Funk 2016-04-22 07:22:55 UTC
Confirmed. Looks fine using KDevelop 5.