Skip to content
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

volatile type not handled as expected #64

Open
Crzyrndm opened this issue Jan 15, 2024 · 2 comments
Open

volatile type not handled as expected #64

Crzyrndm opened this issue Jan 15, 2024 · 2 comments

Comments

@Crzyrndm
Copy link

Somewhere inside the constructor there appears to be missing handling of a type declared as volatile

https://godbolt.org/z/d399qnY64
std::expected from GCC use for comparison

This is a very odd use of volatile (it came up when a colleague used it to defeat the optimiser while debugging) so I really can't be surprised it's a bit iffy

@martinmoene
Copy link
Owner

it's interesting :)

@martinmoene
Copy link
Owner

The same has already been taken care of in nonstd::optional, likely via its issue 69.

See the expanded Compiler Explorer snippet.

I'll update nonst::expected likewise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants