Skip to content

[ub] small fixes to examples #7890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: ub-ifndr
Choose a base branch
from

Conversation

notadragon
Copy link
Contributor

No description provided.

source/ub.tex Outdated
px->~X();
int*p = px->i; // undefined behavior
int p = px->i; // undefined behavior
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: Maybe change this to int j since the name p might connote a pointer.

@hsutter hsutter added the ub-ifndr UB and IFNDR Annex label May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ub-ifndr UB and IFNDR Annex
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants