[Bug c++/115964] GCC accepts invalid program with explicit object member function overloads

corentinjabot at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jul 18 20:36:35 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115964

corentinjabot at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |corentinjabot at gmail dot com

--- Comment #2 from corentinjabot at gmail dot com ---
This is valid per https://eel.is/c++draft/basic.scope.scope#4.4

See https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2797r0.html for
details (this paper resolves https://cplusplus.github.io/CWG/issues/2692.html
by making it well formed)

(this is exactly why we needed a different mangling for these functions)


More information about the Gcc-bugs mailing list