https://bugs.kde.org/show_bug.cgi?id=368105
Bug ID: 368105
Summary: Wrong type is deduced for type auto
Product: kdevelop
Version: 5.0.0
Platform: Appimage
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Language Support: CPP (Clang-based)
Assignee: [email protected]
Reporter: [email protected]
Code in question:
#include <map>
typedef std::map<uint32_t, uint32_t> myMap;
class A
{
myMap* getMap() { return &m_map; }
myMap m_map;
};
int main()
{
A a;
auto deducedVar = a.getMap();
return 0;
}
Reproducible: Always
Steps to Reproduce:
1. Paste code into editor
2. Hover over deducedVar too the kdevelop parsing result for this variable
Actual Results:
deducedVar has type int*
Expected Results:
deducedVar should have type myMap* or std::map<uint32_t, uint32_t>
--
You are receiving this mail because:
You are watching all bug changes.