Bug 328082 - auto *foo = new QObject(); //foo is interpreted as int
Summary: auto *foo = new QObject(); //foo is interpreted as int
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: git master
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-25 19:11 UTC by Alex Fiestas
Modified: 2016-12-13 08:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.0
Sentry Crash Report:


Attachments
The object instance is interpreted correctly (609.74 KB, image/png)
2016-04-23 05:43 UTC, chaitanya srinivas ponnapalli
Details
Object instance interpreted correctly (609.74 KB, image/png)
2016-04-23 05:44 UTC, chaitanya srinivas ponnapalli
Details

Note You need to log in before you can comment on or make changes to this bug.
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!