[Bug c++/67633] decltype on parenthesized class member access of a prvalue sometimes return wrong results

2021-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67633 --- Comment #2 from Andrew Pinski --- GCC, clang and MSVC all argree here but ICC disagrees.

[Bug c++/67633] decltype on parenthesized class member access of a prvalue sometimes return wrong results

2017-07-24 Thread felix.morgner at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67633 --- Comment #1 from Felix Morgner --- The same holds true for GCC 7.1 and the deduced type for decltype(auto): #include #include struct s{int v{};}; decltype(auto) f() { return (s{}.v); } int main() { std::cout << std::is_same{}