public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/22164] GNAT rejects matching parameter in generic instantiation as non-matching
       [not found] <bug-22164-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-06 11:00 ` bat at m4tp dot org
  0 siblings, 0 replies; 8+ messages in thread
From: bat at m4tp dot org @ 2011-10-06 11:00 UTC (permalink / raw)
  To: gcc-bugs

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

baptiste fouques <bat at m4tp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bat at m4tp dot org

--- Comment #6 from baptiste fouques <bat at m4tp dot org> 2011-10-06 10:58:56 UTC ---
seems still present in gcc 4.5.3

it passes OK in most situations, but fails with 2005 extension and match
checks.

should be re-opened

---

generic
   type Data is range <>; -- would pass with "Type Data is private" or anything
even less constraint
   type Table is array (Positive range <>) of access Data;
package Test is

end Test;

---

with Test;

package Test_2 is

   type My_Data is range 0 .. 16#ff#;
   type Data_Table is array (Positive range <>) of access My_Data;

   package Instance is new Test
     (
      Data  => My_Data,
      Table => Data_Table
     );

end Test_2;

---

gcc -c -gnatc -g -gnatq -gnatQ test_2.ads
test_2.ads:11:16: component subtype of actual does not match that of formal
"Table"
test_2.ads:11:16: instantiation abandoned


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/22164] GNAT rejects matching parameter in generic instantiation as non-matching
       [not found] <bug-22164-286@http.gcc.gnu.org/bugzilla/>
@ 2008-08-17 13:20 ` sam at gcc dot gnu dot org
  0 siblings, 0 replies; 8+ messages in thread
From: sam at gcc dot gnu dot org @ 2008-08-17 13:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from sam at gcc dot gnu dot org  2008-08-17 13:19 -------
This appears to be fixed in SVN trunk.


-- 

sam at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gcc dot gnu dot org
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.0


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/22164] GNAT rejects matching parameter in generic instantiation as non-matching
  2005-06-23 14:44 [Bug ada/22164] New: " ludovic dot brenta at insalien dot org
                   ` (4 preceding siblings ...)
  2005-06-23 14:53 ` ludovic dot brenta at insalien dot org
@ 2005-06-23 14:55 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-23 14:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-23 14:55 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |4.1.0 4.0.0 3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-06-23 14:55:50
               date|                            |


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/22164] GNAT rejects matching parameter in generic instantiation as non-matching
  2005-06-23 14:44 [Bug ada/22164] New: " ludovic dot brenta at insalien dot org
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 8+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2005-06-23 14:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ludovic dot brenta at insalien dot org  2005-06-23 14:53 -------
Sorry - replace line 9 with:

    package Instance_Of_Q is new Instance_Of_P.Q (Formal_Array_Type => Array_Type);

-- 
Ludovic Brenta.


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/22164] GNAT rejects matching parameter in generic instantiation as non-matching
  2005-06-23 14:44 [Bug ada/22164] New: " ludovic dot brenta at insalien dot org
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 8+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2005-06-23 14:52 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sparre at nbi dot dk


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/22164] GNAT rejects matching parameter in generic instantiation as non-matching
  2005-06-23 14:44 [Bug ada/22164] New: " 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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-23 14:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-23 14:50 -------
*** Bug 22165 has been marked as a duplicate of this bug. ***

-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/22164] GNAT rejects matching parameter in generic instantiation as non-matching
  2005-06-23 14:44 [Bug ada/22164] New: " 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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-23 14:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-23 14:47 -------
On the mainline (and 4.0.0) on powerpc-darwin, I get:
test_315414.ads:9:34: invalid prefix in selected component "P"


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/22164] GNAT rejects matching parameter in generic instantiation as non-matching
  2005-06-23 14:44 [Bug ada/22164] New: " ludovic dot brenta at insalien dot org
@ 2005-06-23 14:45 ` ludovic dot brenta at insalien dot org
  2005-06-23 14:47 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2005-06-23 14:45 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

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

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

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).