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; 6+ 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] 6+ messages in thread
[parent not found: <bug-17320-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2014-02-27 18:44 UTC | newest]

Thread overview: 6+ 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
     [not found] <bug-17320-4@http.gcc.gnu.org/bugzilla/>
2011-08-31 12:14 ` nicolas.boulenguez at free dot fr
2014-02-27 18:44 ` nicolas.boulenguez at free dot fr

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