With two functions named get_name both returning string, the first function
having no parameter and the second an integer parameter.

This call:

Put(get_name);

is accepted by the compiler but this call

Put(get_name(7));

is rejected as ambiguous. The compiler refers the following possible
interpretations:

procedure Put (Item : Character);
procedure Put (Item : String);

I've written a simple test case referring to no external specifications with
two test procedures taking the place of Put.


-- 
           Summary: Can not resolve PUT between String and Character
                    versions.
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mark_r_eggleston at yahoo dot co dot uk


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39446

Reply via email to