Bug 187783

Summary: Support C99 designated initializers
Product: [Applications] kdevelop Reporter: Robin Pedersen <robinpeder>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: VLO    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Robin Pedersen 2009-03-21 12:40:55 UTC
Version:            (using KDE 4.2.1)
Installed from:    Compiled From Sources

I know this will not be a high priority, but it would be nice to have it some time in the future. It might be a good work-around for the moment just to ignore this syntax, and don't report it as an error, so that completion for other parts of the code still works.

Example:
 struct foobar { int foo; int bar; };
 struct foobar fb = { .bar = 10, .foo = 20 };
Comment 1 Andreas Pakulat 2009-03-21 13:02:01 UTC
So is this supported in C++ (not 0x)? If not marking it as an error is correct, KDevelop has a C++ support plugin, no C support at the moment.

C support has already been filed as a wish, so closing this one.

*** This bug has been marked as a duplicate of bug 57156 ***
Comment 2 Robin Pedersen 2009-03-21 13:25:07 UTC
Just for the record: It's not supported in C++, and will not be supported in 0x, but "maybe sometime in the future".