[Bug c++/107065] GCC treats rvalue as an lvalue
jlame646 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 28 12:06:24 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065
--- Comment #2 from Jason Liam <jlame646 at gmail dot com> ---
Here is another reduced demo: https://godbolt.org/z/hGhfrKrad
```
#include <iostream>
int main() {
bool b = true;
std::cout << std::is_same<decltype(!(!b)), bool>::value << "\n";
auto bb = (!(!b));
std::cout << std::is_same<decltype(bb), bool>::value << "\n";
}
```
More information about the Gcc-bugs
mailing list