Repository navigation
fix(tests): keep generic category vtable entries castable to functions - #6969
Merged
adriadam10 merged 1 commit intoOct 19, 2026
Merged
Conversation
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
ycarogabriel-lgtm
added a commit
to ycarogabriel-lgtm/AnyPS5
that referenced
this pull request
Oct 17, 2026
…le to functions (@jotitadev) Open upstream PR for a test that did not compile with libc++; merged so the fork matches what goes upstream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 tasks done
ycarogabriel-lgtm
added a commit
to ycarogabriel-lgtm/AnyPS5
that referenced
this pull request
Oct 18, 2026
…le to functions (@jotitadev) Open upstream PR for a test that did not compile with libc++; merged so the fork matches what goes upstream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 18, 2026
This was referenced Oct 18, 2026
11 tasks done
This was referenced Oct 19, 2026
Open
11 tasks done
This was referenced Oct 19, 2026
This was referenced Oct 19, 2026
11 tasks done
12 tasks done
Collaborator
|
Checked the change: the vtable field is only used through |
ycarogabriel-lgtm
added a commit
to ycarogabriel-lgtm/AnyPS5
that referenced
this pull request
Oct 25, 2026
…le to functions (@jotitadev) Open upstream PR for a test that did not compile with libc++; merged so the fork matches what goes upstream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The
guest_generic_categorytest from #5102 reads the category's vtable asconst void* const*andreinterpret_casts the entries to function pointers. Clang rejects that (reinterpret_cast from 'const void *' to 'Name' ... casts away qualifiers), so the test does not compile on macOS. The vtable entries are nowvoid*, keeping the table itselfconst. GCC builds the same code as before.Reported in #1 (#1 (comment)). @mugurc asked for it as a separate PR (#1 (comment)).
Tested
macOS 27.2 on an Apple M2 Max, Xcode 27.0 (Apple clang 21.0.0, libc++), x86-64 full build configured as
docs/dev/BUILD.mddescribes (cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON). Base:main4808d9c. I ran the file's exact command fromninja -t commandswith-fsyntax-only. Rechecked after rebasing ontomainab9a476, with the same flags and-fsyntax-onlyfor-arch x86_64and-arch arm64: the same errors onmain, none on this branch. Results:main: threecasts away qualifierserrors (lines 56 to 58).Not run: the test links against
libc, which does not link on macOS yet. The change only affects the type of a test-local struct field, so Linux and Windows run the same test.Rechecked after rebasing onto
main44df216 (2026-10-15), same flags,-fsyntax-onlyfor-arch x86_64and-arch arm64: the error is still there onmain, and this branch compiles.Overlap: #6222 ("Macos m4", currently conflicting with
main) carries the same one-line change inside a larger macOS series. This is the standalone version @mugurc asked for; whichever lands first, the other only drops this hunk.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code