Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

Merged
merged 2 commits into from
May 28, 2025

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
Copy link

@shafik shafik left a comment

Choose a reason for hiding this comment

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

Thank you for these fixes! LGTM

@jensmaurer jensmaurer merged commit 13307cb into cplusplus:ub-ifndr May 28, 2025
0 of 2 checks passed
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.

4 participants