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.
struct AAA { const int value; AAA(int val) : value(val) {}; int get() {return value;}; }; int boo() { return AAA{1}.get(); // get is unresolved }
*** Bug 243224 has been marked as a duplicate of this bug. ***
*** Bug 252699 has been marked as a duplicate of this bug. ***
*** Bug 258332 has been marked as a duplicate of this bug. ***
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 }
Fixed in http://hg.netbeans.org/cnd-main/rev/f693ef504893
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