Bug 15806 - Bug box at expr.c:6764 on legal program
Summary: Bug box at expr.c:6764 on legal program
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on: 15802
Blocks:
  Show dependency treegraph
 
Reported: 2004-06-03 19:19 UTC by Ludovic Brenta
Modified: 2005-06-14 20:54 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-01-11 02:40:55


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludovic Brenta 2004-06-03 19:19:38 UTC
(Debian bug #246388)

procedure Test_246388 is
   Type T1 is array (Positive range <>, Positive range <>) of integer;

   type T2 (max: Positive) is record
      a : T1 (1..2, 1 .. max);
   end record;

   procedure p2(x : T2) is
      y: T1 := x.a;
   begin
      null;
   end p2;

begin
   null;
end Test_246388;




+===========================GNAT BUG DETECTED==============================+
| 3.4.0 (Debian) (i486-pc-linux-gnu) in expand_expr_real, at expr.c:6764   |
| Error detected at test_246388.adb:9:7                                    |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc-3.4 or gnatmake command that you entered.          |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases, 
so please double check that the problem can still 
be reproduced with the set of files listed.

test_246388.adb

compilation abandoned
gnatmake: "test_246388.adb" compilation error
Comment 1 Andrew Pinski 2004-10-12 04:02:07 UTC
Confirmed on the mainline:
+===========================GNAT BUG 
DETECTED==============================+
| 4.0.0 20041008 (experimental) (powerpc-apple-darwin7.4.1) GCC error:     |
| in gimplify_expr, at /gimplify.c:3917                                    |
| Error detected at test_246388.adb:16:5                                   |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==============================================================
============+

Related to bug 15802.
Comment 2 Andrew Pinski 2005-06-14 20:54:48 UTC
Fixed on the mainline.