Skip to content

Navigation Menu

Sign in
Sign up

Avoid vector insert in mixed shared children persistence test - #2009

Open
Hashim1999164 wants to merge 1 commit into
react:main from
Hashim1999164:fix/gcc16-array-bounds-persistence-test
Open

Avoid vector insert in mixed shared children persistence test #2009
Hashim1999164 wants to merge 1 commit into
react:main from
Hashim1999164:fix/gcc16-array-bounds-persistence-test

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Aug 19, 2026
edited
Loading

Copy link
Copy Markdown

Fixes #1934

YGPersistenceTest mixed_shared_and_owned_children used vector insert at begin plus one. GCC 16 with O2 or O3 reports a false array bounds warning, and the tests are built with warnings as errors.

The test now builds the three child pointers explicitly and passes that list to setChildren, which is the same layout without insert.

@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

CLA Signed Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Build tests/YGPersistenceTest.cpp fails with array-bounds error on GCC 16 (-O2 / -O3) due to -Werror

1 participant

AltStyle によって変換されたページ (->オリジナル) /