public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/22164] New: GNAT rejects matching parameter in generic instantiation as non-matching
@ 2005-06-23 14:44 ludovic dot brenta at insalien dot org
  2005-06-23 14:45 ` [Bug ada/22164] " ludovic dot brenta at insalien dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2005-06-23 14:44 UTC (permalink / raw)
  To: gcc-bugs

(Debian bug #315414)

--  ARM 15.5.3(7): "The component subtypes of the formal and actual
--  array types shall statically match."

generic
package P is
    type T is private;
private
    type T is new Integer;
end P;

generic
    type Formal_Array_Type is array (Positive range <>) of T;
package P.Q is
end P.Q;


with P.Q;
package Test_315414 is
    package Instance_Of_P is new P;

    type Array_Type is array (Positive range <>) of Instance_Of_P.T;

    package Instance_Of_Q is new P.Q (Formal_Array_Type => Array_Type);
end Test_315414;


The compiler should accept the program, but says:

test_315414.ads:9:49: component subtype of actual does not match that of formal
"Formal_Array_Type"
test_315414.ads:9:49: instantiation abandoned
gnatmake: "test_315414.ads" compilation error

-- 
           Summary: GNAT rejects matching parameter in generic instantiation
                    as non-matching
           Product: gcc
           Version: 4.0.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


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


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <bug-22164-286@http.gcc.gnu.org/bugzilla/>]
[parent not found: <bug-22164-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-10-06 11:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-23 14:44 [Bug ada/22164] New: GNAT rejects matching parameter in generic instantiation as non-matching ludovic dot brenta at insalien dot org
2005-06-23 14:45 ` [Bug ada/22164] " ludovic dot brenta at insalien dot org
2005-06-23 14:47 ` pinskia at gcc dot gnu dot org
2005-06-23 14:50 ` pinskia at gcc dot gnu dot org
2005-06-23 14:52 ` ludovic dot brenta at insalien dot org
2005-06-23 14:53 ` ludovic dot brenta at insalien dot org
2005-06-23 14:55 ` pinskia at gcc dot gnu dot org
     [not found] <bug-22164-286@http.gcc.gnu.org/bugzilla/>
2008-08-17 13:20 ` sam at gcc dot gnu dot org
     [not found] <bug-22164-4@http.gcc.gnu.org/bugzilla/>
2011-10-06 11:00 ` bat at m4tp dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).