Content-Length: 272865 | pFad | https://github.com/python/cpython/issues/121082

CF CPython build failed with `--enable-pystats` after #118450 · Issue #121082 · python/cpython · GitHub
Skip to content

CPython build failed with --enable-pystats after #118450 #121082

@Zheaoli

Description

@Zheaoli

Bug report

Bug description:

Python/specialize.c: In function ‘_Py_Specialize_ForIter’:
Python/specialize.c:2392:60: error: incompatible type for argument 1 of ‘_PySpecialization_ClassifyIterator’
 2392 |                         _PySpecialization_ClassifyIterator(iter));
      |                                                            ^~~~
      |                                                            |
      |                                                            _PyStackRef
Python/specialize.c:409:70: note: in definition of macro ‘SPECIALIZATION_FAIL’
  409 |         _Py_stats->opcode_stats[opcode].specialization.failure_kinds[kind]++; \
      |                                                                      ^~~~
Python/specialize.c:2290:47: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘_PyStackRef’
 2290 |  _PySpecialization_ClassifyIterator(PyObject *iter)
      |                                     ~~~~~~~~~~^~~~

Introduced after #118450

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/121082

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy