False-Positive Syntax Error?

Andreas Pakulat apaku at gmx.de
Wed Jun 20 11:34:36 BST 2007


On 20.06.07 07:18:06, Alvin wrote:
> I'm using KDevelop 3.4.1 (Using KDE 3.5.7 "release 35.1" openSUSE) on openSUSE 
> 10.2.
> 
> I have the following in a .cpp file.
> 
> 	void Foo::bar(int i)
> 	{
> 	
> 		if(i < 0 || i > table->rows())
> 			return;
> 	}
> 
> 
> The if-statement is highlighted as a syntax error. The Error tab says the 
> following:
> 
> 	Problem: ')' expected found '->'
> 
> The file and program compile with no errors.
> 
> I can make the error go away if I switch the last condition:
> 
> 	...
> 	if(i < 0 || table->rows() < i)
> 	...
> 
> Am I doing something wrong, or is this really a false-positive?

It is a false-positive. Unfortunately our C++ parser has a few bugs, but
nobody is really capable of fixing them.

Andreas

-- 
It's all in the mind, ya know.




More information about the KDevelop mailing list