Skip to content

syntax error caused by unconditional __has_feature usage #474

@firewave

Description

@firewave

Encountered while working on #438.

# if __has_feature(attribute_availability_with_strict)
# endif
a.cpp:1: syntax error: failed to evaluate #if condition, undefined function-like macro invocation: __has_feature( ... )

See
https://en.cppreference.com/w/cpp/feature_test.html
https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005ffeature.html

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