https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107981
--- Comment #4 from Fedor Chelnokov ---
Related discussion: https://stackoverflow.com/q/79527267/7325599
In short, operator renaming (replacing of placeholder auto with deduced return
type) is justified by the standard:
https://eel.is/c++draft/
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107981
Fedor Chelnokov changed:
What|Removed |Added
CC||fchelnokov at gmail dot com
--- Comme
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107981
--- Comment #2 from Egor Pugin ---
Ignore previous comment.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107981
--- Comment #1 from Egor Pugin ---
Also see following test cases.
===
ok for gcc
struct a {
operator auto();
};
struct b : a {
using a::operator auto;
};
===
not ok for gcc&clang, ok for msvc
struct a {
operator auto();
};
stru