diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2019-07-03 08:14:15 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2019-07-03 08:14:15 +0000 |
commit | 09c9ed5bb8b8e3b65dd2f631bf18f6b796499fbd (patch) | |
tree | a0f13786145129994116d8620769483ced1276dc /gcc/fortran | |
parent | 6cbd53c2277e5013d83fe73d5e73844066b651a7 (diff) | |
download | gcc-09c9ed5bb8b8e3b65dd2f631bf18f6b796499fbd.zip gcc-09c9ed5bb8b8e3b65dd2f631bf18f6b796499fbd.tar.gz gcc-09c9ed5bb8b8e3b65dd2f631bf18f6b796499fbd.tar.bz2 |
[Ada] Fix bogus error on array with overaligned scalar component
The compiler would wrongly reject an alignment clause larger than 8 on
the component type of an array of scalars, which is valid albeit
pathological.
2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* layout.adb (Layout_Type): Do not set the component size of an
array with a scalar component if the component type is
overaligned.
gcc/testsuite/
* gnat.dg/alignment14.adb: New testcase.
From-SVN: r272968
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions