(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
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.
Fixed on the mainline.