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 271138

Summary: restrict keywords are flagged as ERRORs in C files
Product: cnd Reporter: Eaton
Component: Code ModelAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description Eaton 2017-07-21 12:55:10 UTC
Example code:
    typedef struct base_struct {
    };
    typedef struct base_struct * pointer_struct ;
    static int valid_function(pointer_struct restrict db_conn) {
        return 0;
    }

When an struct is defined as a pointer, using the restrict keyword causes Error messages (cannot find the identifier)
the following for example does not throw the error messages:

    typedef struct base_struct {	
    };
    static int valid_function(base_struct * restrict db_conn) {
        return 0;
    }