public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/18455] New: Legal rejected in gnat 3.15p, RM 3.10(15); incorrect execution in gcc 3.4.2
@ 2004-11-12 16:39 ludovic dot brenta at insalien dot org
2004-11-12 18:08 ` [Bug ada/18455] incorrect execution pinskia at gcc dot gnu dot org
2004-11-24 21:13 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 4+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-11-12 16:39 UTC (permalink / raw)
To: gcc-bugs
(Debian bug #280940)
-- RM 3.10(15) "An access value satisfies a composite_constraint
-- of an access subtype if it ... designates an object whose value
-- satisfies the constraint."
with text_io;
procedure Test_131 is
type string_ptr is access all string;
subtype str10 is string_Ptr(1..10);
xstr20: aliased string := (1..20 => 'a');
xstr10: str10;
begin
xstr10 := xstr20'Access; -- line 12
text_io.put_line("FAILED, constraint_error not raised");
exception
when constraint_error =>
text_io.put_line("PASSED, constraint_error raised");
end Test_131;
Expected output: the compiler says nothing, the program prints:
PASSED, constraint_error raised
Actual output with gnat 3.15p:
test_131.adb:12:14: object subtype must statically match designated subtype
gnatmake: "test_131.adb" compilation error
which is incorrect. With gnat-3.4 3.4.2-2, the compiler says nothing
(correct) but the program runs and outputs:
FAILED, constraint_error not raised
--
Summary: Legal rejected in gnat 3.15p, RM 3.10(15); incorrect
execution in gcc 3.4.2
Product: gcc
Version: 3.4.2
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=18455
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug ada/18455] incorrect execution
2004-11-12 16:39 [Bug ada/18455] New: Legal rejected in gnat 3.15p, RM 3.10(15); incorrect execution in gcc 3.4.2 ludovic dot brenta at insalien dot org
@ 2004-11-12 18:08 ` pinskia at gcc dot gnu dot org
2004-11-24 21:13 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-12 18:08 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Summary|Legal rejected in gnat |incorrect execution
|3.15p, RM 3.10(15); |
|incorrect execution in gcc |
|3.4.2 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18455
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug ada/18455] incorrect execution
2004-11-12 16:39 [Bug ada/18455] New: Legal rejected in gnat 3.15p, RM 3.10(15); incorrect execution in gcc 3.4.2 ludovic dot brenta at insalien dot org
2004-11-12 18:08 ` [Bug ada/18455] incorrect execution pinskia at gcc dot gnu dot org
@ 2004-11-24 21:13 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-24 21:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-24 21:13 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-11-24 21:13:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18455
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug ada/18455] incorrect execution
[not found] <bug-18455-286@http.gcc.gnu.org/bugzilla/>
@ 2007-05-02 10:32 ` charlet at gcc dot gnu dot org
0 siblings, 0 replies; 4+ messages in thread
From: charlet at gcc dot gnu dot org @ 2007-05-02 10:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from charlet at gcc dot gnu dot org 2007-05-02 11:32 -------
Fixed on trunk.
--
charlet at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18455
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-05-02 10:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-12 16:39 [Bug ada/18455] New: Legal rejected in gnat 3.15p, RM 3.10(15); incorrect execution in gcc 3.4.2 ludovic dot brenta at insalien dot org
2004-11-12 18:08 ` [Bug ada/18455] incorrect execution pinskia at gcc dot gnu dot org
2004-11-24 21:13 ` pinskia at gcc dot gnu dot org
[not found] <bug-18455-286@http.gcc.gnu.org/bugzilla/>
2007-05-02 10:32 ` charlet 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).