| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e01a4e80-bae3-0204-cd90-122670cb2b62 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D9F8:2C69FC:24DA380:30A549C:6B025DA0 |
| html-safe-nonce | 8f5595decc0580528055046d00fbc9a8d08a8484010d4b9b6100c37f3741cbb0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUY4OjJDNjlGQzoyNERBMzgwOjMwQTU0OUM6NkIwMjVEQTAiLCJ2aXNpdG9yX2lkIjoiNDEzMzI1OTE4OTIzNTYzNzY2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 49744974458894e06e8b0a03e63a5a2c87ef612c170ad61a61f0d8fda29cc3ce |
| hovercard-subject-tag | pull_request:4472156340 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/Cpp2Rust/cpp2rust/pull/337/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | std::array<int, 3> v = {}; incorrectly generated vec![] (0 elements) instead of a 3-element vector with default values.
Root Cause
Clang represents an empty-brace std::array initializer as an... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/Cpp2Rust/cpp2rust git https://github.com/Cpp2Rust/cpp2rust.git |
| octolytics-dimension-user_id | 197474191 |
| octolytics-dimension-user_login | Cpp2Rust |
| octolytics-dimension-repository_id | 1183095779 |
| octolytics-dimension-repository_nwo | Cpp2Rust/cpp2rust |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1183095779 |
| octolytics-dimension-repository_network_root_nwo | Cpp2Rust/cpp2rust |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/Cpp2Rust/cpp2rust/pull/337/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCpp2Rust%2Fcpp2rust%2Fpull%2F337%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCpp2Rust%2Fcpp2rust%2Fpull%2F337%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=Cpp2Rust%2Fcpp2rust |
| Reload | https://github.com/Cpp2Rust/cpp2rust/pull/337/files |
| Reload | https://github.com/Cpp2Rust/cpp2rust/pull/337/files |
| Reload | https://github.com/Cpp2Rust/cpp2rust/pull/337/files |
| Cpp2Rust | https://github.com/Cpp2Rust |
| cpp2rust | https://github.com/Cpp2Rust/cpp2rust |
| Code | https://github.com/Cpp2Rust/cpp2rust |
| Issues21 (21) | https://github.com/Cpp2Rust/cpp2rust/issues |
| Pull requests | https://github.com/Cpp2Rust/cpp2rust/pulls |
| Actions | https://github.com/Cpp2Rust/cpp2rust/actions |
| Security and quality | https://github.com/Cpp2Rust/cpp2rust/security |
| Insights | https://github.com/Cpp2Rust/cpp2rust/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FCpp2Rust%2Fcpp2rust%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FCpp2Rust%2Fcpp2rust%2Fissues%2Fnew%2Fchoose |
| nunoplopes | https://github.com/nunoplopes |
| master | https://github.com/Cpp2Rust/cpp2rust/tree/master |
| copilot/fix-std-array-default-initializer | https://github.com/Cpp2Rust/cpp2rust/tree/copilot/fix-std-array-default-initializer |
|
Conversation
0
| https://github.com/Cpp2Rust/cpp2rust/pull/337 |
|
Commits
3
| https://github.com/Cpp2Rust/cpp2rust/pull/337/commits |
|
Checks
9
| https://github.com/Cpp2Rust/cpp2rust/pull/337/checks |
|
Files changed
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/337/files |
|
Fix std::array default initializer generating empty Vec instead of sized Vec
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files#top |
|
Show all changes
3 commits
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files |
|
1702d66
Initial plan
Copilot Sep 8, 2026
| https://github.com/Cpp2Rust/cpp2rust/pull/337/commits/1702d66a93edf5ffdf80b5bb749aa734bad2fa2e |
|
f4264d4
Fix std::array empty-brace default initializer size
Copilot Sep 8, 2026
| https://github.com/Cpp2Rust/cpp2rust/pull/337/commits/f4264d4b989cda9b3e1bdf78af80f278a8f328c1 |
|
9735d52
Update expected test outputs for std::array default init fix
Copilot Sep 8, 2026
| https://github.com/Cpp2Rust/cpp2rust/pull/337/commits/9735d5257fb5a51de95b407479339f315ed95ed4 |
|
Clear filters
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/337/files |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/337/files |
|
converter.cpp
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
converter_refcount.cpp
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-086dd5a19fe4ea5036115bfcb7eb45e4917c9e89ef6adacdc381aa4bff56e98a |
|
empty_array_init.rs
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-dd911db47d80941dbf4a7cb088d026d4a1c9f1963633156a2230a8b69d1040da |
|
empty_array_init.rs
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-dbfb639ac2067bad146b1d7bd6380e68c0a43b80cb693ef8bf95d7f0895b0a0e |
| cpp2rust/converter/converter.cpp | https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
View file
| https://github.com/Cpp2Rust/cpp2rust/blob/9735d5257fb5a51de95b407479339f315ed95ed4/cpp2rust/converter/converter.cpp |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/Cpp2Rust/cpp2rust/pull/337/{{ revealButtonHref }} |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-87f37877b158de5c88f4955ff97b30bfebd1e30d15052089259f15f0bff6ad9d |
| cpp2rust/converter/models/converter_refcount.cpp | https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-086dd5a19fe4ea5036115bfcb7eb45e4917c9e89ef6adacdc381aa4bff56e98a |
|
View file
| https://github.com/Cpp2Rust/cpp2rust/blob/9735d5257fb5a51de95b407479339f315ed95ed4/cpp2rust/converter/models/converter_refcount.cpp |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/Cpp2Rust/cpp2rust/pull/337/{{ revealButtonHref }} |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-086dd5a19fe4ea5036115bfcb7eb45e4917c9e89ef6adacdc381aa4bff56e98a |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-086dd5a19fe4ea5036115bfcb7eb45e4917c9e89ef6adacdc381aa4bff56e98a |
| tests/unit/out/refcount/empty_array_init.rs | https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-dd911db47d80941dbf4a7cb088d026d4a1c9f1963633156a2230a8b69d1040da |
|
View file
| https://github.com/Cpp2Rust/cpp2rust/blob/9735d5257fb5a51de95b407479339f315ed95ed4/tests/unit/out/refcount/empty_array_init.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/Cpp2Rust/cpp2rust/pull/337/{{ revealButtonHref }} |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-dd911db47d80941dbf4a7cb088d026d4a1c9f1963633156a2230a8b69d1040da |
| tests/unit/out/unsafe/empty_array_init.rs | https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-dbfb639ac2067bad146b1d7bd6380e68c0a43b80cb693ef8bf95d7f0895b0a0e |
|
View file
| https://github.com/Cpp2Rust/cpp2rust/blob/9735d5257fb5a51de95b407479339f315ed95ed4/tests/unit/out/unsafe/empty_array_init.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/Cpp2Rust/cpp2rust/pull/337/{{ revealButtonHref }} |
|
| https://github.com/Cpp2Rust/cpp2rust/pull/337/files#diff-dbfb639ac2067bad146b1d7bd6380e68c0a43b80cb693ef8bf95d7f0895b0a0e |
| Please reload this page | https://github.com/Cpp2Rust/cpp2rust/pull/337/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |