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

--- Comment #4 from Fedor Chelnokov <fchelnokov at gmail dot com> ---
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/dcl.type.auto.deduct#1

But `using A::operator auto;` (or any operator T) behaves differently from EDG,
which does not allow implicit conversion of `B` into int, and EDG is probably
correct according to the standard (nothing is named):
http://eel.is/c++draft/class.access.general#4

Reply via email to