[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 255642] New: KDevelop errantly interprets less than and greater
From:       Nathan <digitalpioneer () gmail ! com>
Date:       2010-10-30 3:10:33
Message-ID: bug-255642-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic