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 247031 - Cannot resolve identifier if universal initialization syntax is used
Summary: Cannot resolve identifier if universal initialization syntax is used
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
: 243224 252699 258332 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-11 13:47 UTC by petrk
Modified: 2016-07-14 01:50 UTC (History)
3 users (show)

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 petrk 2014-09-11 13:47:44 UTC
struct AAA {
    const int value;
    AAA(int val) : value(val) {};
    int get() {return value;};
};

int boo() {
    return AAA{1}.get(); // get is unresolved
}
Comment 1 petrk 2014-11-21 11:44:40 UTC
*** Bug 243224 has been marked as a duplicate of this bug. ***
Comment 2 petrk 2016-07-12 11:32:41 UTC
*** Bug 252699 has been marked as a duplicate of this bug. ***
Comment 3 petrk 2016-07-12 15:23:59 UTC
*** Bug 258332 has been marked as a duplicate of this bug. ***
Comment 4 petrk 2016-07-12 15:24:32 UTC
Another test case from bug 258332:

struct X
{
	bool getPact() {}
};

X func(int i);

int main()
{
	auto x = func({}); //without `{}` its work
	x.getPact(); //error: Unable to resolve identifier
}
Comment 5 petrk 2016-07-13 15:06:00 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/f693ef504893
Comment 6 Quality Engineering 2016-07-14 01:50:36 UTC
Integrated into 'main-silver', will be available in build *201607140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f693ef504893
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #247031 - Cannot resolve identifier if uniform initialization syntax is used