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 252699

Summary: Temporary object with C++11 uniform initialization breaks code completion
Product: cnd Reporter: ivan_p
Component: Code ModelAssignee: petrk
Status: RESOLVED DUPLICATE    
Severity: normal CC: ivan_p
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot showing the bug

Description ivan_p 2015-05-30 14:37:21 UTC
Created attachment 153968 [details]
Screenshot showing the bug

When temporary object is created with C++11 uniform initialization syntax (using braces), invoking any method on it causes "Unable to resolve identifier" error.
Line 11 in the screenshot shows this.

Expected result - Line 12:
The same behavior as if I used parentheses - it should be treated as object of the appropriate type.

This bug is still present in nightly 201505290001.
Comment 1 petrk 2016-07-12 11:32:41 UTC

*** This bug has been marked as a duplicate of bug 247031 ***