This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/23836] [4.0 Regression] Invalid code generated when accessing packed arrays
- From: "james at recherche dot enac dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2005 20:05:50 -0000
- Subject: [Bug ada/23836] [4.0 Regression] Invalid code generated when accessing packed arrays
- References: <20050912164421.23836.james@recherche.enac.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From james at recherche dot enac dot fr 2005-09-12 20:05 -------
Works perfectly well with -O1 and -O2 with gcc-3.4
There is no language trick here. The overlay A_I (which is the only tricky part)
is never used, it is only declared.
Moreover, declaring Bit as an unsigned type with modular typing as suggested by
some people in the comp.lang.ada newsgroup with
type Bit is mod 2;
doesn't change the general behavior of the compilers.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23836