Title: syntax error caused by unconditional `__has_feature` usage · Issue #474 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: syntax error caused by unconditional `__has_feature` usage · Issue #474 · cppcheck-opensource/simplecpp
X Title: syntax error caused by unconditional `__has_feature` usage · Issue #474 · cppcheck-opensource/simplecpp
Description: Encountered while working on #438. # if __has_feature(attribute_availability_with_strict) # endif a.cpp:1: syntax error: failed to evaluate #if condition, undefined function-like macro invocation: __has_feature( ... ) See https://gcc.gnu...
Open Graph Description: Encountered while working on #438. # if __has_feature(attribute_availability_with_strict) # endif a.cpp:1: syntax error: failed to evaluate #if condition, undefined function-like macro invocation: ...
X Description: Encountered while working on #438. # if __has_feature(attribute_availability_with_strict) # endif a.cpp:1: syntax error: failed to evaluate #if condition, undefined function-like macro invocation: ...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/474
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"syntax error caused by unconditional `__has_feature` usage","articleBody":"Encountered while working on #438.\n\n```cpp\n# if __has_feature(attribute_availability_with_strict)\n# endif\n```\n\n```\na.cpp:1: syntax error: failed to evaluate #if condition, undefined function-like macro invocation: __has_feature( ... )\n```\n\nSee\nhttps://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005ffeature.html","author":{"url":"https://github.com/firewave","@type":"Person","name":"firewave"},"datePublished":"2025-08-04T11:22:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/474/simplecpp/issues/474"}
| 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:bdf90d99-409a-39a2-3955-4b6dd2f8eea2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 801C:14011B:6CAF1F6:9840F4E:6A505571 |
| html-safe-nonce | 0433f559198a37e0b6a8bbaa9a5faff30c534abc3e872195ac834b454c1c56a9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDFDOjE0MDExQjo2Q0FGMUY2Ojk4NDBGNEU6NkE1MDU1NzEiLCJ2aXNpdG9yX2lkIjoiMjE3MzE4OTgzNjUwNDA2MTI5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 728f8e132b2aedf0dcbba55a6f497f3aaed68373585127883a9bc45501e06d61 |
| hovercard-subject-tag | issue:3289039055 |
| 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/474/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f2e3f69c102f62f1f62bb378ccbc7cfdd302269960fd237936f3be40960ecf97/cppcheck-opensource/simplecpp/issues/474 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f2e3f69c102f62f1f62bb378ccbc7cfdd302269960fd237936f3be40960ecf97/cppcheck-opensource/simplecpp/issues/474 |
| og:image:alt | Encountered while working on #438. # if __has_feature(attribute_availability_with_strict) # endif a.cpp:1: syntax error: failed to evaluate #if condition, undefined function-like macro invocation: ... |
| 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 | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| 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 | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width