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 240723 - auto return type and const noexcept in C++11 code highlighted as error
Summary: auto return type and const noexcept in C++11 code highlighted as error
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: petrk
URL:
Keywords:
: 221855 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-20 20:15 UTC by VaderZ
Modified: 2014-01-29 02:52 UTC (History)
1 user (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 VaderZ 2014-01-20 20:15:32 UTC
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
Comment 1 petrk 2014-01-28 11:04:07 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/cd9ef5d445ed
Comment 2 petrk 2014-01-28 11:05:52 UTC
*** Bug 221855 has been marked as a duplicate of this bug. ***
Comment 3 Quality Engineering 2014-01-29 02:52:27 UTC
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