Skip to content

STDEXEC_HAS_FEATURE(__cpp_lib_execution) fails with recent libstdc++. #1523

Open
@jehelset

Description

@jehelset

I think 0242ad9 broke NVIDIA/stdexec for at least gcc-15 and gcc-trunk (https://godbolt.org/z/9ez66G7vv).

it checks __has_feature(__cpp_lib_execution), but in libstdc++ is a macro defined at https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/bits/version.h#L672.

should perhaps guard with

#if defined(__cpp_lib_execution)
#  define STDEXEC_HAS_EXECUTION_POLICY() 0
#elif __has_feature(__cpp_lib_execution)
#  define STDEXEC_HAS_EXECUTION_POLICY() 1
#else
#  define STDEXEC_HAS_EXECUTION_POLICY() 0
#endif

@lucteo

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