public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/16083] New: Illegal program not detected, RM 3.9.2(13)
@ 2004-06-19 15:01 ludovic dot brenta at insalien dot org
  2004-06-19 16:42 ` [Bug ada/16083] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-06-19 15:01 UTC (permalink / raw)
  To: gcc-bugs

-- RM 3.9.2(13)
-- dispatching operations cannot be added after a body.
procedure Test_248168 is
   package pak1 is
      type T1 is abstract tagged null record;
      procedure p1(x: in out T1) is abstract;
   end pak1;

   type T2 is new pak1.T1 with null record;

   protected type T3 is
   end T3;

   protected body T3 is
   end T3;

   procedure p1(x: in out T2) is    --ERROR: declared after body of T3
   begin
      null;
   end p1;

begin
   null;
end Test_248168;

I expect an error message like:
test_248168.adb:17:29: "T2" is frozen, primitive operation overridden too late

But the compiler says nothing.

-- 
           Summary: Illegal program not detected, RM 3.9.2(13)
           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=16083


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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-19 15:01 [Bug ada/16083] New: Illegal program not detected, RM 3.9.2(13) ludovic dot brenta at insalien dot org
2004-06-19 16:42 ` [Bug ada/16083] " pinskia at gcc dot gnu dot org
2004-10-29 14:34 ` pinskia at gcc dot gnu dot org
2004-10-29 14:47 ` pinskia at gcc dot gnu dot org
     [not found] <bug-16083-4@http.gcc.gnu.org/bugzilla/>
2011-08-31 11:34 ` nicolas.boulenguez at free dot fr
2014-02-27 18:37 ` 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).