This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/32442] New: Ada 05 Null Exclusion Problem
- From: "tiberius1 at gmx dot li" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2007 22:44:18 -0000
- Subject: [Bug ada/32442] New: Ada 05 Null Exclusion Problem
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ /home/tiberius/local/gcc/bin/gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.2.0/configure --prefix=/home/tiberius/local/gcc-4.2.0
--libexecdir=/home/tiberius/local/gcc-4.2.0/lib --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-languages=c,c++,ada
Thread model: posix
gcc version 4.2.0
$ /home/tiberius/local/gcc/bin/gnatmake -gnatf -gnat05 -fstack-check -gnato bla
gcc -c -gnatf -gnat05 -fstack-check -gnato bla.adb
+===========================GNAT BUG DETECTED==============================+
| 4.2.0 (i686-pc-linux-gnu) Assert_Failure checks.adb:2615 |
| Error detected at bla.adb:21:10 |
| 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.
bla.adb
compilation abandoned
gnatmake: "bla.adb" compilation error
$ cat bla.adb
with Ada.Text_IO;
procedure bla
is
procedure Default
is
begin
Ada.Text_IO.Put_Line ("xx");
end Default;
type V is (abc, def, ghi, jkl);
type W is array (V) of not null access procedure;
X : constant W := (others => Default'Access);
-- Commenting this out doesn't cause the problem
type Y is
record
Z : W := X;
end record;
begin
null;
end bla;
--
Summary: Ada 05 Null Exclusion Problem
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tiberius1 at gmx dot li
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32442