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; 8+ 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] 8+ messages in thread
* [Bug ada/15915] Illegal program not detected, RM 13.11(15)
2004-06-10 21:44 [Bug ada/15915] New: Illegal program not detected, RM 13.11(15) ludovic dot brenta at insalien dot org
@ 2004-10-12 4:06 ` 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
2 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-12 4:06 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15915
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ada/15915] Illegal program not detected, RM 13.11(15)
2004-06-10 21:44 [Bug ada/15915] New: Illegal program not detected, RM 13.11(15) 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
2 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-29 13:38 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15915
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ada/15915] Illegal program not detected, RM 13.11(15)
2004-06-10 21:44 [Bug ada/15915] New: Illegal program not detected, RM 13.11(15) 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
2 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-29 14:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-29 14:45 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-10-29 14:45:07
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15915
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ada/15915] Illegal program not detected, RM 13.11(15)
[not found] <bug-15915-286@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2008-04-14 12:11 ` sam at gcc dot gnu dot org
@ 2008-04-14 12:12 ` sam at gcc dot gnu dot org
3 siblings, 0 replies; 8+ messages in thread
From: sam at gcc dot gnu dot org @ 2008-04-14 12:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from sam at gcc dot gnu dot org 2008-04-14 12:12 -------
This is fixed in SVN.
--
sam at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15915
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ada/15915] Illegal program not detected, RM 13.11(15)
[not found] <bug-15915-286@http.gcc.gnu.org/bugzilla/>
2007-12-13 14: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
3 siblings, 0 replies; 8+ messages in thread
From: sam at gcc dot gnu dot org @ 2008-04-14 12:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from sam at gcc dot gnu dot org 2008-04-14 12:11 -------
Subject: Bug 15915
Author: sam
Date: Mon Apr 14 12:10:16 2008
New Revision: 134261
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134261
Log:
gcc/ada/
PR ada/15915
* sem_util.ads, sem_util.adb (Denotes_Variable): New function.
* sem_ch12.adb (Instantiate_Object): Use it.
* sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
storage pool denotes a variable as per RM 13.11(15).
gcc/testsuite/
PR ada/15915
* gnat.dg/specs/storage.ads: New.
Added:
trunk/gcc/testsuite/gnat.dg/specs/storage.ads
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/sem_ch12.adb
trunk/gcc/ada/sem_ch13.adb
trunk/gcc/ada/sem_util.adb
trunk/gcc/ada/sem_util.ads
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15915
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ada/15915] Illegal program not detected, RM 13.11(15)
[not found] <bug-15915-286@http.gcc.gnu.org/bugzilla/>
2007-12-13 14: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
3 siblings, 0 replies; 8+ messages in thread
From: sam at gcc dot gnu dot org @ 2008-04-11 18:24 UTC (permalink / raw)
To: gcc-bugs
--
sam at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |sam at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2007-12-13 14:15:45 |2008-04-11 18:23:53
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15915
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ada/15915] Illegal program not detected, RM 13.11(15)
[not found] <bug-15915-286@http.gcc.gnu.org/bugzilla/>
@ 2007-12-13 14:15 ` sam at gcc dot gnu dot org
2008-04-11 18:24 ` sam at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: sam at gcc dot gnu dot org @ 2007-12-13 14:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from sam at gcc dot gnu dot org 2007-12-13 14:15 -------
Confirmed on 4.3.0 20071213.
Changing priority to P5 as it is clearly a minor error.
--
sam at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gcc dot gnu dot org
Priority|P2 |P5
Last reconfirmed|2005-06-14 04:51:38 |2007-12-13 14:15:45
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15915
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-04-14 12:12 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-10 21:44 [Bug ada/15915] New: Illegal program not detected, RM 13.11(15) 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
[not found] <bug-15915-286@http.gcc.gnu.org/bugzilla/>
2007-12-13 14: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
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).