public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/18727] New: ACATS c43214c fails at runtime
@ 2004-11-29 20:39 laurent at guerby dot net
  2004-11-29 20:50 ` [Bug ada/18727] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: laurent at guerby dot net @ 2004-11-29 20:39 UTC (permalink / raw)
  To: gcc-bugs

On x86, x86_64 and powerpc-darwin c43214c fails at runtime. 

Here is a slightly reduced test case that fails at -O2 but works at -O0/-O1 and
often works when slightly changed.

$ gnatmake -O2 p3
$ ./p3
(print garbage, expected WORK)
$ cat p3.adb
-- from ACATS c43214c
with Ada.Text_IO;
procedure P3 is
   SUBTYPE STB IS STRING(1 .. 4);

   GENERIC
      B1 : STB;
   PROCEDURE PROC1;

   PROCEDURE PROC1 IS
   begin
      Ada.Text_IO.Put_Line (B1);
   END;

   X : STB := "WORK";

   PROCEDURE PROC2 IS NEW PROC1 (x);

begin
   PROC2;
END;
$ 

Original ACATS output:

,.,. C43214C ACATS 2.5 04-11-29 10:37:13
---- C43214C CONSTRAINED ARRAY FORMAL GENERIC PARAMETER.
   * C43214C ARRAY DOES NOT CONTAIN THE CORRECT VALUES.
**** C43214C FAILED ****************************.

-- 
           Summary: ACATS c43214c fails at runtime
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: laurent at guerby dot net
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18727


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

end of thread, other threads:[~2005-03-17 19:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-29 20:39 [Bug ada/18727] New: ACATS c43214c fails at runtime laurent at guerby dot net
2004-11-29 20:50 ` [Bug ada/18727] " pinskia at gcc dot gnu dot org
2004-12-03 22:16 ` laurent at guerby dot net
2004-12-06 20:09 ` laurent at guerby dot net
2005-01-12 22:43 ` baldrick at free dot fr
2005-01-15  0:55 ` uweigand at gcc dot gnu dot org
2005-01-15  0:56 ` uweigand at gcc dot gnu dot org
2005-02-20 23:06 ` [Bug tree-optimization/18727] [4.0 Regression] ACATS c43214c fails at runtime (tree-dce/aliasing bug) ebotcazou at gcc dot gnu dot org
2005-02-22 15:25 ` [Bug tree-optimization/18727] [4.0 Regression] ACATS c43214c fails at runtime (aliasing pb) ebotcazou at gcc dot gnu dot org
2005-03-01 18:33 ` [Bug tree-optimization/18727] [4.0/4.1 " ebotcazou at gcc dot gnu dot org
2005-03-05 19:52 ` pinskia at gcc dot gnu dot org
2005-03-15 16:25 ` ebotcazou at gcc dot gnu dot org
2005-03-17 19:53 ` cvs-commit at gcc dot gnu dot org
2005-03-17 19:57 ` ebotcazou 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).