Bug 331865 - Inner type in array var declaration not highlighted
Summary: Inner type in array var declaration not highlighted
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (other bugs)
Version First Reported In: 4.6.1
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-08 00:12 UTC by Nicolás Alvarez
Modified: 2016-12-13 08:02 UTC (History)
1 user (show)

See Also:
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 (196.12 KB, image/png)
2016-04-22 07:16 UTC, chaitanya srinivas ponnapalli
Details

Note You need to log in before you can comment on or make changes to this bug.
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.