[Bug c++/115888] GCC rejects valid program involving explict object member function

2024-07-12 Thread jlame646 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115888 --- Comment #3 from Jason Liam --- Reduced program to show the intent more clearly: ``` #include struct C{ int f(this int); }; decltype(C::f) func; //msvc accepts but clang and gcc rejects int func(int j) { std::cout << "called with:

[Bug c++/115888] GCC rejects valid program involving explict object member function

2024-07-12 Thread jlame646 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115888 --- Comment #2 from Jason Liam --- (In reply to Andrew Pinski from comment #1) > https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#2688 This is not CWG2688. Note that in the given example here, gcc and clang rejects `decltype(C::f)`

[Bug c++/115888] GCC rejects valid program involving explict object member function

2024-07-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115888 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill