Skip to content

Using restrict with variable length arrays #19

@Kerilk

Description

@Kerilk

The following declaration

int f(int n, float a[restrict n]);

does not yield the correct AST, both the restrict qualifier and the length n are lost.
This snippet parses fine:

int f(int n, float a[n]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions