[Bug ada/15604] New: Illegal program not detected, ambiguous aggregate

ludovic dot brenta at insalien dot org gcc-bugzilla@gcc.gnu.org
Sun May 23 23:34:00 GMT 2004


package Test_244496 is
   type T1 is array (boolean) of float;
   type T2 is array (boolean) of integer;

   function f1 (x: T1) return integer;
   function f1 (y: T2) return integer;

   generic
      z: integer;
   package Q is
   end Q;

   package new_Q is new Q (z => f1((1.0, 2.0)));  -- ERROR: ambiguous
end Test_244496;


$ gcc-3.4 -c -gnatc -x ada test_244496.ads 
$

-- 
           Summary: Illegal program not detected, ambiguous aggregate
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ludovic dot brenta at insalien dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



More information about the Gcc-bugs mailing list