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 218771

Summary: constexpr is not a keyword in system header file
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: issues@cnd <issues>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2012-09-21 13:10:44 UTC
Code:

#include <iterator>
#include <vector>

int main() {
    std::vector<int> v = {0};
    std::begin(v);
    return 0;
}

Scenario:
- Add GCC4.6 toolchain
- Add __GXX_EXPERIMENTAL_CXX0X__ macro definition
- Create project
- Add -std=c++0x into Build|C++ Compiler|Additional Options
- Copy&Paste code into project
- Move cursor on 'begin' and Press Ctrl-B (hyperlink)
==> I see a lot of unresolved "constexpr" in system header file (constexpr is not a keyword in that file)
Comment 1 Alexander Simon 2015-11-11 15:05:01 UTC
fixed long ago