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.
The following correct code shows "unexpected token" error #include <iostream> class A { public: int x; A(int i) {x = i;} }; int main() { int a = 1; A* ap = new A[4]{a, a, a, a}; // unexpected token std::cout << ap[0].x; return 0; }
Fixed in http://hg.netbeans.org/cnd-main/rev/39e48ae4a448
Integrated into 'main-silver', will be available in build *201401310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/39e48ae4a448 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #241017 - False error on C++11 operator new