Version: 3.3.5 (using KDE 3.5.5, Gentoo) Compiler: Target: i686-pc-linux-gnu OS: Linux (i686) release 2.6.18 GCC attribute keyword as function decoration is not recognized by the C++ parser, an thus marked as error: int foo(void) __attribute__(__constructor__); or __attribute__(__constructor__) int foo(void);
The cpp parser doesn't support GCC extensions. A suggested workaround is adding: "#define __attribute__(s)" to Settings -> Configure KDevelop -> C++ Parsing -> Special headers. This should allow the parser to disregard the statement and not report errors from it.
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