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
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?
Thanks.
Alvin
More information about the KDevelop
mailing list