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

Summary: Constructor completion doesn't work for stack-allocated vars
Product: cnd Reporter: rkfg
Component: Code CompletionAssignee: Vladimir Kvashin <vkvashin>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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()).