Version: 3.2.1 (using KDE KDE 3.4.1) Installed from: Gentoo Packages Compiler: 3.4.3 OS: Linux Example from the gcc info page: Assume that `struct foo' and `structure' are declared as shown: struct foo {int a; char b[2];} structure; Here is an example of constructing a `struct foo' with a compound literal: structure = ((struct foo) {x + y, 'a', 0}); The second line gets marked as an error, it is perfectly valid. Note that this is not an obscure extension, it is part of the ISO 99 standard.
Of course, the code compiles fine, it is only marked red in the editor.
Problem is with the parser, not the Problems display widget.
duplicate of the "parses C as C++" bug as far as I can see. *** This bug has been marked as a duplicate of 57156 ***
Moving all the bugs from the CPP Parser. It was not well defined the difference between it and C++ Language Support and people kept reporting in both places indistinctively