Skip to content

Stmt macro definitions do not work properly #162

Description

@riftEmber

The second stmt macro definition does not work because of the use of literals in the place of arguments in the macro. For example:

#define s_0(__x0)   bar = foo;
#define s0(0)   s_0(0);

Gives the following error in preprocessing:

test.cpp:2:12: error: expected parameter name, found "0"
    2 | #define s0(0)   s_0(0);
      |            ^

This same thing happens with more complex applied exec schedules like s0(0,i,1).
Credit to @AaronStGeorge for finding this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions