public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/15918] New: Wrong output from legal program
@ 2004-06-10 21:47 ludovic dot brenta at insalien dot org
2004-06-10 21:51 ` [Bug ada/15918] " ludovic dot brenta at insalien dot org
2004-06-11 8:25 ` ludovic dot brenta at insalien dot org
0 siblings, 2 replies; 3+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-06-10 21:47 UTC (permalink / raw)
To: gcc-bugs
with Ada.Finalization;
package pak1 is
type T1 is tagged private; -- not visibly controlled
private
type T1 is new Ada.Finalization.Controlled with null record;
procedure Initialize (Object : in out T1);
end pak1;
with text_io;
package body pak1 is
procedure Initialize (Object : in out T1) is
begin
text_io.put_line("passed: T1 initialize called");
end Initialize;
end pak1;
with pak1;
package pak2 is
type T2 is new pak1.T1 with null record;
procedure Initialize (Object : in out T2); -- not overriding
end pak2;
with text_io;
package body pak2 is
procedure Initialize (Object : in out T2) is
begin
text_io.put_line("failed: T2 initialize called");
end Initialize;
end pak2;
with pak2;
procedure Test_247565 is
x: pak2.T2;
begin
null;
end Test_247565;
The program compiles fine (with -q -O1), but outputs:
passed: T1 initialize called
--
Summary: Wrong output from legal program
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=15918
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug ada/15918] Wrong output from legal program
2004-06-10 21:47 [Bug ada/15918] New: Wrong output from legal program ludovic dot brenta at insalien dot org
@ 2004-06-10 21:51 ` ludovic dot brenta at insalien dot org
2004-06-11 8:25 ` ludovic dot brenta at insalien dot org
1 sibling, 0 replies; 3+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-06-10 21:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ludovic dot brenta at insalien dot org 2004-06-10 21:51 -------
Sorry, I meant that the actual output of the program was:
failed: T2 initialize called
(copy-paste error from another test in the testsuite :) )
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15918
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug ada/15918] Wrong output from legal program
2004-06-10 21:47 [Bug ada/15918] New: Wrong output from legal program ludovic dot brenta at insalien dot org
2004-06-10 21:51 ` [Bug ada/15918] " ludovic dot brenta at insalien dot org
@ 2004-06-11 8:25 ` ludovic dot brenta at insalien dot org
1 sibling, 0 replies; 3+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-06-11 8:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ludovic dot brenta at insalien dot org 2004-06-11 08:25 -------
Blunder. I should have slowed down a bit. This bug is not present in 3.4,
only in 3.15p. Sorry for the false bug report.
--
Ludovic Brenta.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15918
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-06-11 8:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-10 21:47 [Bug ada/15918] New: Wrong output from legal program ludovic dot brenta at insalien dot org
2004-06-10 21:51 ` [Bug ada/15918] " ludovic dot brenta at insalien dot org
2004-06-11 8:25 ` ludovic dot brenta at insalien 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).