From kdevelop-bugs Sat Oct 30 03:10:33 2010 From: Nathan Date: Sat, 30 Oct 2010 03:10:33 +0000 To: kdevelop-bugs Subject: [Bug 255642] New: KDevelop errantly interprets less than and greater Message-Id: X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=128840835425609 https://bugs.kde.org/show_bug.cgi?id=255642 Summary: KDevelop errantly interprets less than and greater than operators as template parameter delimiters Product: kdevelop Version: 4.1.60 Platform: Archlinux Packages OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: NOR Component: Language Support: CPP AssignedTo: kdevelop-bugs@kdevelop.org ReportedBy: digitalpioneer@gmail.com Version: 4.1.60 (using KDE 4.5.2) OS: Linux OK, this one is hard to describe, so here's my line of code that caused it: if (external < 1 || external > (size-6)*(size-2)) Obviously, this is comparing variable external to a few ints, but the < ... >(...) confuses the parser and it complains that "Declaration not found: external< 1 || external >" apparently because it interprets this as a template. Note that the parentheses are important! Without parentheses immediately after the > KDev handles this just fine. Reproducible: Always Steps to Reproduce: Type a line in that includes any structure like this: var < var || var > (expression) Actual Results: Highlighted incorrectly, and gives a semantic analysis error. Expected Results: No error, correctly highlighted. -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ KDevelop-bugs mailing list KDevelop-bugs@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs