This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/15604] New: Illegal program not detected, ambiguous aggregate
- From: "ludovic dot brenta at insalien dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2004 09:28:18 -0000
- Subject: [Bug ada/15604] New: Illegal program not detected, ambiguous aggregate
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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