------- Comment #3 from sam at gcc dot gnu dot org 2009-03-17 14:28 ------- This is not a bug. The compiler really has no way to distinguish between the following two interpretations for "Put (Get_Name (7))":
1- Get_Name (7) is a call to Get_Name with argument 7, which returns a String 2- Get_Name (7) is a call to Get_Name without argument, which returns a String, and you attempt to take the 7th character of this string, which is a Character Hence the ambiguity. -- sam at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sam at gcc dot gnu dot org Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39446