https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115964
--- Comment #3 from Jason Liam <jlame646 at gmail dot com> --- (In reply to corentinjabot from comment #2) > This is valid per https://eel.is/c++draft/basic.scope.scope#4.4 No you've misread your quoted reference. The program is ill formed as explained in the given thread: https://stackoverflow.com/questions/78758215/explicit-member-function-discrepancies-between-different-compilers