Skip to content

GCC style fallthrough attribute is used with clang versions that don't support it #128902

Closed
@jmroot

Description

@jmroot

Bug report

Bug description:

Include/pyport.h currently only guards use of __attribute__((fallthrough)) with _Py__has_attribute(fallthrough). Clang versions prior to 10 do not support this syntax, but do claim to support the fallthrough attribute (because they support the C++11 style [[fallthrough]]).

CPython versions tested on:

3.14

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixesbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions