public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/15915] New: Illegal program not detected, RM 13.11(15)
@ 2004-06-10 21:44 ludovic dot brenta at insalien dot org
  2004-10-12  4:06 ` [Bug ada/15915] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-06-10 21:44 UTC (permalink / raw)
  To: gcc-bugs

-- RM 13.11(15)
-- the name in a Storage_Pool clause shall denote a variable
with System.Storage_Pools;
with System.Storage_Elements;
package Test_247560 is
   type Storage_Pool_Type
   is new System.Storage_Pools.Root_Storage_Pool with null record;

   procedure Allocate
      (Pool                     : in out Storage_Pool_Type;
       Storage_Address          :    out System.Address;
       Size_In_Storage_Elements : in     System.Storage_Elements.Storage_Count;
       Alignment                : in     System.Storage_Elements.Storage_Count);

   procedure Deallocate
      (Pool                     : in out Storage_Pool_Type;
       Storage_Address          : in     System.Address;
       Size_In_Storage_Elements : in     System.Storage_Elements.Storage_Count;
       Alignment                : in     System.Storage_Elements.Storage_Count);

   function Storage_Size
      (Pool : in Storage_Pool_Type)
          return System.Storage_Elements.Storage_Count;

   x1: Storage_Pool_Type;
   type T1 is access integer;
   for T1'Storage_Pool use (x1);  -- ERROR:
                                  -- parenthesised expression, not variable
end Test_247560;


I expect an error message like this:
test_247560.ads:27:27: variable expected, found expression

But the compiler remains silent.  To be more precise, it says:
cannot generate code for file test_247560.ads (package spec)
to check package spec for errors, use -gnatc
gnatmake: "test_247560.ads" compilation error

which is unrelated to the bug.  Also:

$ gcc-3.4 -c -gnatc test_247560.ads
yields nothing.

-- 
           Summary: Illegal program not detected, RM 13.11(15)
           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=15915


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

end of thread, other threads:[~2008-04-14 12:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-15915-286@http.gcc.gnu.org/bugzilla/>
2007-12-13 14:15 ` [Bug ada/15915] Illegal program not detected, RM 13.11(15) sam at gcc dot gnu dot org
2008-04-11 18:24 ` sam at gcc dot gnu dot org
2008-04-14 12:11 ` sam at gcc dot gnu dot org
2008-04-14 12:12 ` sam at gcc dot gnu dot org
2004-06-10 21:44 [Bug ada/15915] New: " ludovic dot brenta at insalien dot org
2004-10-12  4:06 ` [Bug ada/15915] " pinskia at gcc dot gnu dot org
2004-10-29 13:38 ` pinskia at gcc dot gnu dot org
2004-10-29 14:45 ` 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).