[Bug ada/121058] overloading of functions returning types that have an implicit dereference

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 16 10:13:35 GMT 2026


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

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
This comes from this kludge in Resolve:

               --  AI05-0139-2: Expression is overloaded because type has
               --  implicit dereference. The context may be the one that
               --  requires implicit dereferemce.

               elsif Has_Implicit_Dereference (Expr_Type) then
                  Set_Etype (N, Expr_Type);
                  Set_Is_Overloaded (N, False);


More information about the Gcc-bugs mailing list