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 - restrict keywords are flagged as ERRORs in C files
Summary: restrict keywords are flagged as ERRORs in C files
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-21 12:55 UTC by Eaton
Modified: 2017-07-21 12:55 UTC (History)
0 users

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 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;
    }