Title: syntax error caused by unconditional `__has_extension` usage · Issue #536 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: syntax error caused by unconditional `__has_extension` usage · Issue #536 · cppcheck-opensource/simplecpp
X Title: syntax error caused by unconditional `__has_extension` usage · Issue #536 · cppcheck-opensource/simplecpp
Description: Encountered while working on #438. # if __has_extension(cxx_rvalue_references) # endif a.cpp:1: syntax error: failed to evaluate #if condition, undefined function-like macro invocation: __has_extension( ... ) See https://gcc.gnu.org/onli...
Open Graph Description: Encountered while working on #438. # if __has_extension(cxx_rvalue_references) # endif a.cpp:1: syntax error: failed to evaluate #if condition, undefined function-like macro invocation: __has_exten...
X Description: Encountered while working on #438. # if __has_extension(cxx_rvalue_references) # endif a.cpp:1: syntax error: failed to evaluate #if condition, undefined function-like macro invocation: __has_exten...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/536
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"syntax error caused by unconditional `__has_extension` usage","articleBody":"Encountered while working on #438.\n\n```cpp\n# if __has_extension(cxx_rvalue_references)\n# endif\n```\n\n```\na.cpp:1: syntax error: failed to evaluate #if condition, undefined function-like macro invocation: __has_extension( ... )\n```\n\nSee\nhttps://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005fextension.html","author":{"url":"https://github.com/firewave","@type":"Person","name":"firewave"},"datePublished":"2025-09-07T21:51:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/536/simplecpp/issues/536"}
| 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:32ae09df-7765-a5f8-4f64-d668bb59248f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E60C:8A2B5:204072B:2C344DD:6A4F38EC |
| html-safe-nonce | 46aa1a8aecad218d2e851e1deaba2eff40ff9122b30feaa9f71f0a9ed8f9fbf6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjBDOjhBMkI1OjIwNDA3MkI6MkMzNDRERDo2QTRGMzhFQyIsInZpc2l0b3JfaWQiOiI2Nzg5NTg5NDg3MDQ5NDU1ODUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | aaa98a69c175ccaf06018ace105bdd7227ea8fa1d22a78c17d7b4b0bf451de61 |
| hovercard-subject-tag | issue:3392046579 |
| 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/cppcheck-opensource/simplecpp/536/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1e93e13fd52ced5a13d695316626c3c305fc18c2ea57fb1d9e2d476bf30f7454/cppcheck-opensource/simplecpp/issues/536 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1e93e13fd52ced5a13d695316626c3c305fc18c2ea57fb1d9e2d476bf30f7454/cppcheck-opensource/simplecpp/issues/536 |
| og:image:alt | Encountered while working on #438. # if __has_extension(cxx_rvalue_references) # endif a.cpp:1: syntax error: failed to evaluate #if condition, undefined function-like macro invocation: __has_exten... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | firewave |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git |
| octolytics-dimension-user_id | 278097703 |
| octolytics-dimension-user_login | cppcheck-opensource |
| octolytics-dimension-repository_id | 33434464 |
| octolytics-dimension-repository_nwo | cppcheck-opensource/simplecpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33434464 |
| octolytics-dimension-repository_network_root_nwo | cppcheck-opensource/simplecpp |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width