Bug 276128

Summary: C99 designated initializers are not supported
Product: [Applications] kdevelop Reporter: yar
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: aspotashev, ryan.reich
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: 4.2.0   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description yar 2011-06-20 14:52:18 UTC
Version:           unspecified
OS:                Linux

Designated initializers from C99 are not supported by KDevelop.

For example

struct A { int a; int b; };
struct A a = { .a = 1, .b =3 };

will give "unexpected token" error.

Reproducible: Always
Comment 1 Ryan Reich 2011-07-14 02:05:36 UTC
I'm also getting this behavior, using KDevelop 4.2.2 (KDE Development Platform 4.6.2, according to About) on Ubuntu 11.04.  The periods are red-underlined and their tooltips say "Problem in Parser: Unexpected token '.'".
Comment 2 Alexander Potashev 2013-12-15 01:22:56 UTC

*** This bug has been marked as a duplicate of bug 280591 ***