Skip to content

C++ does not like the HPyTuple_Pack macro #318

Closed
@mattip

Description

@mattip

When trying to run Cython tests on a branch to provide HPy support (see cython/cython#4490), I am seeing errors of the form below.

error: taking address of temporary array
   25 | #define HPyTuple_Pack(ctx, n, ...) (HPyTuple_FromArray(ctx, (HPy[]){ __VA_ARGS__ }, n))
      |                                                                    ^~~~~~~~~~~~~~~
hpy_basic.cpp:6083:12: note: in expansion of macro ‘HPyTuple_Pack’
 6083 |     args = HPyTuple_Pack(ctx, 1, cleanup_func);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions