Bug 187783 - Support C99 designated initializers
Summary: Support C99 designated initializers
Status: RESOLVED DUPLICATE of bug 57156
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: VLO wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-21 12:40 UTC by Robin Pedersen
Modified: 2009-03-21 13:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

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