Bug 328082

Summary: auto *foo = new QObject(); //foo is interpreted as int
Product: [Applications] kdevelop Reporter: Alex Fiestas <afiestas>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: cponnapalli
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.0.0
Sentry Crash Report:
Attachments: The object instance is interpreted correctly
Object instance interpreted correctly

Description Alex Fiestas 2013-11-25 19:11:40 UTC
The following code:
auto *foo = new QObject();

will make KDevelop think that foo is of type int, instead of QObject*.

Reproducible: Always
Comment 1 chaitanya srinivas ponnapalli 2016-04-23 05:43:07 UTC
Created attachment 98531 [details]
The object instance is interpreted correctly

1. Followed the steps mentioned in the issue.
2. Created a class QObject. In the main, instantiated auto as an object of the class type.
3. The object instance is interpreted correctly by kdevelop, as the object of the class type.
4. Kdevelop does not interpret it as an int.
Comment 2 chaitanya srinivas ponnapalli 2016-04-23 05:44:17 UTC
Created attachment 98532 [details]
Object instance interpreted correctly

1. Followed the steps mentioned in the issue.
2. Created a class QObject. In the main, instantiated auto as an object of the class type.
3. The object instance is interpreted correctly by kdevelop, as the object of the class type.
4. Kdevelop does not interpret it as an int.
Comment 3 Kevin Funk 2016-04-23 18:19:32 UTC
Thanks!