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.
I have valid C++11 code: -->%--->%--->%--->%-- struct X { bool getPact() {} }; int main() { auto x = X{}; x.getPact(); //error: Unable to resolve identifier } --%<---%<---%<---%<-- When I change brackets in `X{}` to `X()` error disappear.
Another similar bug case, but now with function: -->%--->%--->%--->%-- struct X { bool getPact() {} }; X func(int i); int main() { auto x = func({}); //without `{}` its work x.getPact(); //error: Unable to resolve identifier } --%<---%<---%<---%<--
*** This bug has been marked as a duplicate of bug 247031 ***