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.
Product Version = NetBeans IDE Dev (Build 201401150002) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.7.0_40 Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56 C++ 11 in functions that have auto return type and const noexcept are being highlighted as error in IDE while they compile and run just fine. Example: class MyClass { template<typename K> //for the sake of the bug i use K with auto return type auto myFunc() const noexcept -> decltype(K()) { // this line return 42; } // and this line are marked as error }; The errors like: unexcepted token: auto, unexcepted token: ->, unexcepted token: (, etc... The bug looks simular to previous and solved bug #221855
Fixed in http://hg.netbeans.org/cnd-main/rev/cd9ef5d445ed
*** Bug 221855 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201401290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/cd9ef5d445ed User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #240723 - auto return type and const noexcept in C++11 code highlighted as error