-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
[libc++] std::declval
gives wrong result for cv void
#61232
Comments
It looks like libstdc++ is also doing the same thing, have you also filed a bug there as well? I have to look up the wording to see what we expect here. |
Yes, I have filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109049 |
It looks like they don't want to fix that. Should we file a LWG issue to fix the C++ standard instead? |
I've mailed to LWG Chair to request legitimation of libc++ and libstdc++'s current strategy. |
The provided reproducer is not well-defined. There's a defect in the standard here, but the defect is that the standard fails to explicitly call out this example as being ill-formed because it depends on the exact signature of |
@frederick-vs-ja found that
std::declval
works wrongly for the code example:https://gcc.godbolt.org/z/rc483sWPo
The text was updated successfully, but these errors were encountered: