Title: We should fail to compile if _Py_TAIL_CALL_INTERP is set but `preserve_none` and `musttail` do not exist. · Issue #140513 · python/cpython · GitHub
Open Graph Title: We should fail to compile if _Py_TAIL_CALL_INTERP is set but `preserve_none` and `musttail` do not exist. · Issue #140513 · python/cpython
X Title: We should fail to compile if _Py_TAIL_CALL_INTERP is set but `preserve_none` and `musttail` do not exist. · Issue #140513 · python/cpython
Description: Bug report Bug description: The code should look something like this: #if _Py_TAIL_CALL_INTERP && (defined(__clang__) || defined(__GNUC__)) # if !_Py__has_attribute(preserve_none) || !!_Py__has_attribute(musttail) # error "This compiler ...
Open Graph Description: Bug report Bug description: The code should look something like this: #if _Py_TAIL_CALL_INTERP && (defined(__clang__) || defined(__GNUC__)) # if !_Py__has_attribute(preserve_none) || !!_Py__has_att...
X Description: Bug report Bug description: The code should look something like this: #if _Py_TAIL_CALL_INTERP && (defined(__clang__) || defined(__GNUC__)) # if !_Py__has_attribute(preserve_none) || !!_Py_...
Opengraph URL: https://github.com/python/cpython/issues/140513
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"We should fail to compile if _Py_TAIL_CALL_INTERP is set but `preserve_none` and `musttail` do not exist.","articleBody":"# Bug report\n\n### Bug description:\n\nThe code should look something like this:\n```c\n#if _Py_TAIL_CALL_INTERP \u0026\u0026 (defined(__clang__) || defined(__GNUC__))\n# if !_Py__has_attribute(preserve_none) || !!_Py__has_attribute(musttail)\n# error \"This compiler does not have support for efficient tail calling.\"\n# endif\n#endif\n```\n\n### CPython versions tested on:\n\nCPython main branch, 3.15, 3.14\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-140548\n* gh-140923\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/Fidget-Spinner","@type":"Person","name":"Fidget-Spinner"},"datePublished":"2025-10-23T18:10:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/140513/cpython/issues/140513"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:75742f07-69b3-19c9-84c7-365fa685c7df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E660:327857:D64BA8:1269AA4:696A82D8 |
| html-safe-nonce | a8978be6f436a945266035c02a098a20ccea5510a6d53d3a44e880c7388b9102 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjYwOjMyNzg1NzpENjRCQTg6MTI2OUFBNDo2OTZBODJEOCIsInZpc2l0b3JfaWQiOiI3MjkxOTA3ODMzODE0NzQ1ODE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5723ab206a804e8182e7893d29b11d7aaf702489d031df32e320c0bc85cb850a |
| hovercard-subject-tag | issue:3545958150 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/140513/issue_layout |
| twitter:image | https://opengraph.githubassets.com/75d39a712905efe56fc1e370bc8e6ca80f14c01309fb268f5686ffa825f0a434/python/cpython/issues/140513 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75d39a712905efe56fc1e370bc8e6ca80f14c01309fb268f5686ffa825f0a434/python/cpython/issues/140513 |
| og:image:alt | Bug report Bug description: The code should look something like this: #if _Py_TAIL_CALL_INTERP && (defined(__clang__) || defined(__GNUC__)) # if !_Py__has_attribute(preserve_none) || !!_Py__has_att... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Fidget-Spinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width