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

            Bug ID: 401745
           Summary: auto value incorrectly deduced to int from unsinged
                    int
           Product: kdevelop
           Version: git master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: mgraess...@kde.org
  Target Milestone: ---

Created attachment 116674
  --> https://bugs.kde.org/attachment.cgi?id=116674&action=edit
CMakeList.txt

Please consider the following example code:

#include <iostream>
#include <limits>
#include <boost/type_index.hpp>

using boost::typeindex::type_id_with_cvr;

int main()

{
    const auto value = std::numeric_limits<unsigned int>::max();
    std::cout << type_id_with_cvr<decltype(value)>().pretty_name() << '\n';
}

Hovering value gives "const int value", but running the application gives:
"unsigned int const" as debug output.

Attached is a screenshot illustrating the difference, cpp and CMakeLists.txt
for this issue.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to