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

List:       kdevelop-bugs
Subject:    [Bug 278482] New: KDevelop treats signed and unsigned chars as ints
From:       Alexander Shaduri <ashaduri () yandex ! ru>
Date:       2011-07-25 16:43:26
Message-ID: bug-278482-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=278482

           Summary: KDevelop treats signed and unsigned chars as ints when
                    used as template parameters
           Product: kdevelop
           Version: git master
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: ashaduri@yandex.ru


Version:           git master (using KDE 4.6.3) 
OS:                Linux

I'm using KDevelop git master from 2011-07-25.
The following example demonstrates the problem:

template<typename T>
struct S { };

void func()
{
    S<signed char> s1;  // incorrectly treats as signed int
    S<unsigned char> s2;  // incorrectly treats as unsigned int
    signed char c1;  // correctly treats as signed char
}

Thanks!

Reproducible: Always

Steps to Reproduce:
Paste the above example into some .cpp file, move the mouse over s1 and s2.


Expected Results:  
char should be treated as char, not int.

openSUSE 11.3 x86_64

-- 
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