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 224030

Summary: constexpr breaks parser (unexpected tokens)
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: issues@cnd <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2012-12-19 11:59:46 UTC
from Clang test suite. 'friend' is unexpected token.

#include <iostream>
using namespace std;
constexpr enum E3 { V3 } e3 = V3;
enum E4 { V4 } constexpr e4 = V4;

int main() {
    cout << e3 << endl;
    cout << e4 << endl;
    return 0;
}
Comment 1 petrk 2014-08-13 13:32:22 UTC

*** This bug has been marked as a duplicate of bug 243510 ***