False-Positive Syntax Error?

Alvin alvinbeach at gmail.com
Wed Jun 20 11:18:06 BST 2007

I'm using KDevelop 3.4.1 (Using KDE 3.5.7 "release 35.1" openSUSE) on openSUSE 

I have the following in a .cpp file.

	void Foo::bar(int i)
		if(i < 0 || i > table->rows())

The if-statement is highlighted as a syntax error. The Error tab says the 

	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?



More information about the KDevelop mailing list