Skip to content

[3.15.0a8] Build error if specialization is disabled #148825

@cdce8p

Description

@cdce8p

Bug report

Bug description:

Set ENABLE_SPECIFICATION = 0 and run make.

#define ENABLE_SPECIALIZATION 1

Python/specialize.c:119:31: error: use of undeclared identifier 'opcode'
  119 |         i += _PyOpcode_Caches[opcode];
      |                               ^
1 error generated.
make: *** [Python/specialize.o] Error 1

The bug was introduced in 879c85f, released with 3.15.0a8.

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.15new features, bugs and security fixesbuildThe build process and cross-buildinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions