Skip to content

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

Closed

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

Activity

  1. added
    type-bug
    on Jan 16, 2025
  2. added
    build
    3.12
    3.13
    3.14
    and removed
    3.12
    3.13
    on Jan 16, 2025
  3. ZeroIntensity commented on Jan 16, 2025

    @ZeroIntensity
    Member

    Looks like this was done in #121044

    cc @sobolevn @vstinner

  4. added a commit that references this issue on Jan 22, 2025
  5. ned-deily commented on Jan 22, 2025

    @ned-deily
    Member

    Fixed in #128903 edf8033 for 3.14.0a5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14buildtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions