Bug 29681 - gnat Bug Box on 'valid of packed array field
Summary: gnat Bug Box on 'valid of packed array field
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 4.1.1
: P3 normal
Target Milestone: 4.3.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-01 14:08 UTC by John O'Meara
Modified: 2006-11-01 19:53 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
single file example (251 bytes, text/plain)
2006-11-01 14:10 UTC, John O'Meara
Details
gnatchop -able multifile example (349 bytes, text/plain)
2006-11-01 14:10 UTC, John O'Meara
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John O'Meara 2006-11-01 14:08:40 UTC
problem observed in: gcc-4.1.1
problem not observed in: gcc-3.2.3

----------- gcc 4.1.1 -v ----------------
$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../crosstool-0.42/build/i686-unknown-linux-gnu/gcc-4.1.1-glibc-2.3.6/gcc-4.1.1/configure --prefix=/users/johnm/opt/gcc4.1.1-native/ --enable-languages=c,c++,ada
Thread model: posix
gcc version 4.1.1

----------- gcc 3.2.3 -v ----------------
$ /usr/bin/gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53

--------------- Build of single-file example: ------------

$ gcc -c outt.adb
+===========================GNAT BUG DETECTED==============================+
| 4.1.1 (i686-pc-linux-gnu) in expand_expr_addr_expr_1, at expr.c:6393     |
| Error detected at outt.adb:19:5                                          |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Use a subject line meaningful to you and us to track the bug.            |
| 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).                   |
+==========================================================================+

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.

outt.adb

compilation abandoned


------------- build of multifile example: -------------------------------

+===========================GNAT BUG DETECTED==============================+
| 4.1.1 (i686-pc-linux-gnu) in expand_expr_addr_expr_1, at expr.c:6393     |
| Error detected at s-secsta.ads:64:14                                     |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Use a subject line meaningful to you and us to track the bug.            |
| 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).                   |
+==========================================================================+

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.

eerom.adb
eerom.ads

eerom.adb:4:17: warning: "Number_Units" is never assigned a value
eerom.adb:5:17: warning: "Result" is never assigned a value
compilation abandoned
Comment 1 John O'Meara 2006-11-01 14:10:02 UTC
Created attachment 12526 [details]
single file example
Comment 2 John O'Meara 2006-11-01 14:10:34 UTC
Created attachment 12527 [details]
gnatchop -able multifile example
Comment 3 Arnaud Charlet 2006-11-01 19:53:16 UTC
Fixed on trunk.