Bug 135957

Summary: Simple if statement confuses cpp parser
Product: [Applications] kdevelop Reporter: Christoph Bartoschek <bartoschek>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christoph Bartoschek 2006-10-19 13:02:07 UTC
Version:           Subversion 3.4 branch revision 596958 (using KDE KDE 3.5.5)
Installed from:    Compiled From Sources
Compiler:          g++ 4.1 
OS:                Linux

If I open a new file in my main development project and enter the following code:

void reduce(double a, double b)
{
   if (b * a < a);
}


I get an error indicator in the 4th line:

Error 3 17 ')' expected found '<'


If I do this on a newly created simple c++ project the error is the same.
Comment 1 Andreas Pakulat 2007-01-14 04:45:26 UTC
Dupe.

*** This bug has been marked as a duplicate of 133504 ***
Comment 2 Aleix Pol 2013-03-31 00:49:29 UTC
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