This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 268450 - Constructor completion doesn't work for stack-allocated vars
Summary: Constructor completion doesn't work for stack-allocated vars
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-10 14:34 UTC by rkfg
Modified: 2017-04-04 18:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rkfg 2016-10-10 14:34:51 UTC
I'm trying to get completion for stack-allocated vars. However, this doesn't show any constructor suggestions:

#include <string>
using namespace std;

int main(int argc, char** argv) {
    string s(); // <-- cursor is here between the brackets
    return 0;
}

Same for my own custom classes, though I have completions when allocating on heap (with new ClassName()).