From kdevelop-bugs Sun Dec 31 02:23:27 2006 From: Tolga Dalman Date: Sun, 31 Dec 2006 02:23:27 +0000 To: kdevelop-bugs Subject: [Bug 139424] New: C99-style struct initializer parse error Message-Id: <20061231032326.139424.tdalman () project-psi ! org> X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=118306962011635 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=139424 Summary: C99-style struct initializer parse error Product: kdevelop Version: 3.3.5 Platform: unspecified OS/Version: Linux Status: UNCONFIRMED Severity: wishlist Priority: NOR Component: general AssignedTo: kdevelop-bugs kdevelop org ReportedBy: tdalman project-psi org Version: 3.3.5 (using KDE 3.5.5, Gentoo) Compiler: Target: i686-pc-linux-gnu OS: Linux (i686) release 2.6.18 Consider the following code snippet: struct some_struct { int a; int b; }; void foo(void) { struct some_struct bar = { .a = 10, .b = 20 }; //... } The first line in foo is marked as error, although it is valid C99 code (but not C++). Is there some way to tell the parse, to ignore (or mark the source entirely C-only) ? Otherwise, it would be nice if this could be resolved....