Repository navigation
feat(post): reflection can flag a dangling signature that GCC 16.2 does not warn about - #206
Merged
Merged
Conversation
…signature lint The API contract post holds the 08:00Z slot that day. The short written in response to Klaus Iglberger's safety article goes out at 16:00Z beside it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BTCmkp4nQKAhWT8TGXF9KX
…es not warn about A consteval walk over a namespace flags a view returned from a by-value owner and a const reference returned from const references of one type. On GCC 16.2 the view bug gets no -Wall -Wextra warning (also none with -Wdangling-pointer=2), prints a stale view in a plain run, and fails AddressSanitizer with a heap use after free. The reference bug gets a -Wdangling-reference warning. Written in response to Klaus Iglberger's safety article of 18 October. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BTCmkp4nQKAhWT8TGXF9KX
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BTCmkp4nQKAhWT8TGXF9KX
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.
Oct 29 short, written in response to Klaus Iglberger's safety article (modernescpp.com, 2026-10-18). A reflection lint of 58 lines flags 3 of 5 declarations on GCC 16.2 and trunk. For the view-of-a-by-value-owner bug, -Wall -Wextra (and -Wdangling-pointer=2) give no warning, a plain run shows a stale view, and ASan reports a heap use after free; the reference bug gets -Wdangling-reference. Four Compiler Explorer permalinks; the demos are deterministic (checked three times). Registers a 16:00Z double beside the API-contract post.
Visual: the post's two tables and the rendered card in the social commit.
Gates: prose-lint, check-pubdates, check-llms-sync, check-social-render, unit tests, production build, check:future. Examples: wrocpp/cpp26-reflection-examples#51 (merged).
🤖 Generated with Claude Code
https://claude.ai/code/session_01BTCmkp4nQKAhWT8TGXF9KX