public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/17320] New: Illegal program not detected, name hidden by use clauses, RM 3.9.3(11)
@ 2004-09-04 13:53 ludovic dot brenta at insalien dot org
  2004-09-04 23:33 ` [Bug ada/17320] Illegal program not detected, " ludovic dot brenta at insalien dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-09-04 13:53 UTC (permalink / raw)
  To: gcc-bugs

(Debian bug #269948)

--  RM 3.9.3/11 A generic actual subprogram shall not be an abstract
--  subprogram.  works OK if unrelated line (A) is commented out.
package Test_269948 is
   generic
      with function "=" (X, Y : integer) return Boolean is <>;   --(A)
   package pak1 is
      function "=" (X, Y: float) return Boolean is abstract;
      generic
         with function Equal (X, Y : float) return Boolean is "=";  --ERROR:
      package pak2 is
      end pak2;
   end pak1;

   package new_pak1 is new pak1;
   package new_pak2 is new new_pak1.pak2;
end Test_269948;



The above program compiles without an error with GNAT 3.15p and GCC
3.4.  The compiler should instead print something like:

test_269948.ads:15:04: abstract subprogram not allowed as generic actual
gnatmake: "test_119.ads" compilation error

-- 
           Summary: Illegal program not detected, name hidden by use
                    clauses, RM 3.9.3(11)
           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


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


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

* [Bug ada/17320] Illegal program not detected, RM 3.9.3(11)
  2004-09-04 13:53 [Bug ada/17320] New: Illegal program not detected, name hidden by use clauses, RM 3.9.3(11) ludovic dot brenta at insalien dot org
@ 2004-09-04 23:33 ` ludovic dot brenta at insalien dot org
  2004-10-13  2:07 ` pinskia at gcc dot gnu dot org
  2004-11-24 19:17 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-09-04 23:33 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Illegal program not         |Illegal program not
                   |detected, name hidden by use|detected, RM 3.9.3(11)
                   |clauses, RM 3.9.3(11)       |


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


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

* [Bug ada/17320] Illegal program not detected, RM 3.9.3(11)
  2004-09-04 13:53 [Bug ada/17320] New: Illegal program not detected, name hidden by use clauses, RM 3.9.3(11) ludovic dot brenta at insalien dot org
  2004-09-04 23:33 ` [Bug ada/17320] Illegal program not detected, " ludovic dot brenta at insalien dot org
@ 2004-10-13  2:07 ` pinskia at gcc dot gnu dot org
  2004-11-24 19:17 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-13  2:07 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid


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


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

* [Bug ada/17320] Illegal program not detected, RM 3.9.3(11)
  2004-09-04 13:53 [Bug ada/17320] New: Illegal program not detected, name hidden by use clauses, RM 3.9.3(11) ludovic dot brenta at insalien dot org
  2004-09-04 23:33 ` [Bug ada/17320] Illegal program not detected, " ludovic dot brenta at insalien dot org
  2004-10-13  2:07 ` pinskia at gcc dot gnu dot org
@ 2004-11-24 19:17 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-24 19:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-24 19:17 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-24 19:17:51
               date|                            |


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


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

end of thread, other threads:[~2004-11-24 19:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-04 13:53 [Bug ada/17320] New: Illegal program not detected, name hidden by use clauses, RM 3.9.3(11) ludovic dot brenta at insalien dot org
2004-09-04 23:33 ` [Bug ada/17320] Illegal program not detected, " ludovic dot brenta at insalien dot org
2004-10-13  2:07 ` pinskia at gcc dot gnu dot org
2004-11-24 19:17 ` 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).