Title: Example case fail from ISO/IEC N4917 section 15.6.2 example1 · Issue #469 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Example case fail from ISO/IEC N4917 section 15.6.2 example1 · Issue #469 · cppcheck-opensource/simplecpp
X Title: Example case fail from ISO/IEC N4917 section 15.6.2 example1 · Issue #469 · cppcheck-opensource/simplecpp
Description: Case from N4917 [Example 1 : #define LPAREN() ( #define G(Q) 42 #define F(R, X, ...) __VA_OPT__(G R X) ) int x = F(LPAREN(), 0, <:-); // replaced by int x = 42; — end example] > cat /tmp/test8.c #define LPAREN() ( #define G(Q) 42 #define...
Open Graph Description: Case from N4917 [Example 1 : #define LPAREN() ( #define G(Q) 42 #define F(R, X, ...) __VA_OPT__(G R X) ) int x = F(LPAREN(), 0, <:-); // replaced by int x = 42; — end example] > cat /tmp/test8.c #d...
X Description: Case from N4917 [Example 1 : #define LPAREN() ( #define G(Q) 42 #define F(R, X, ...) __VA_OPT__(G R X) ) int x = F(LPAREN(), 0, <:-); // replaced by int x = 42; — end example] > cat /tmp/test...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/469
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Example case fail from ISO/IEC N4917 section 15.6.2 example1","articleBody":"Case from N4917\n```\n[Example 1 :\n#define LPAREN() (\n#define G(Q) 42\n#define F(R, X, ...) __VA_OPT__(G R X) )\nint x = F(LPAREN(), 0, \u003c:-);\n // replaced by int x = 42;\n— end example]\n```\n\n```sh\n> cat /tmp/test8.c\n#define LPAREN() (\n#define G(Q) 42\n#define F(R,X,...) __VA_OPT__(G R X) )\n\nint x = F(LPAREN(), 0, \u003c:-);\n```\n\nrun with gcc -E:\n\n```sh\n> gcc -E /tmp/test8.c \n# 0 \"/tmp/test8.c\"\n# 0 \"\u003cbuilt-in>\"\n# 0 \"\u003ccommand-line>\"\n# 1 \"/home/rshen/.guix-profile/include/stdc-predef.h\" 1 3\n# 0 \"\u003ccommand-line>\" 2\n# 1 \"/tmp/test8.c\"\n\n\n\n\nint x = 42;\n\n```\n\nbut it failed with simplecpp\n\n```sh\n> ./simplecpp /tmp/test8.c\n\n/tmp/test8.c:5: syntax error: failed to expand 'F', Wrong number of parameters for macro 'G'.\n\n```\n\nRongsong","author":{"url":"https://github.com/shen390s","@type":"Person","name":"shen390s"},"datePublished":"2025-07-30T02:32:04Z","url":"https://github.com/cppcheck-opensource/simplecpp/issues/469"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:c2fe4baf-72ea-8900-b674-898bbe9a70d2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B06E:3596B3:49FAA:68425:6AFC51EB |
| html-safe-nonce | f31a4885551f8b8c9754fe339fd3c63bf14ce11796012cb554e20c65c775e998 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDZFOjM1OTZCMzo0OUZBQTo2ODQyNTo2QUZDNTFFQiIsInZpc2l0b3JfaWQiOiIyNDA0MDQ0NTM5MTI4NzMwMDkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f946e4aab1a16abf806178c4c431fedfe64fd748218f0b9f780e7130ca4f1339 |
| hovercard-subject-tag | issue:3275482224 |
| 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/469/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b1cb9f4fdeb44708fb64769202cfa4bf842f3aa1e8da703507dcef9961e2585c/cppcheck-opensource/simplecpp/issues/469 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b1cb9f4fdeb44708fb64769202cfa4bf842f3aa1e8da703507dcef9961e2585c/cppcheck-opensource/simplecpp/issues/469 |
| og:image:alt | Case from N4917 [Example 1 : #define LPAREN() ( #define G(Q) 42 #define F(R, X, ...) __VA_OPT__(G R X) ) int x = F(LPAREN(), 0, <:-); // replaced by int x = 42; — end example] > cat /tmp/test8.c #d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shen390s |
| hostname | github.com |
| expected-hostname | github.com |
| None | b63557e0027d8014589e873df28328da74a4356701bb1a9eab49dbf012ba8fa6 |
| 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 | 0243355b0352c83733a042e0dfb3d75149b51261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width