aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_spark.adb
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2019-08-20 09:48:57 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-08-20 09:48:57 +0000
commitafdc759841f8f4f464f3d5a2ba8e05e9a8e41d72 (patch)
treed6b32bef1abb656d0d22855f4f90e9ff53a386f3 /gcc/ada/sem_spark.adb
parent6cd8f5b09415ec799f797e5b521afd18552cd747 (diff)
downloadgcc-afdc759841f8f4f464f3d5a2ba8e05e9a8e41d72.zip
gcc-afdc759841f8f4f464f3d5a2ba8e05e9a8e41d72.tar.gz
gcc-afdc759841f8f4f464f3d5a2ba8e05e9a8e41d72.tar.bz2
[Ada] Object_Size clause specifying 0 bits is illegal
The patch gives an error message on "for T'Object_Size use 0;". 2019-08-20 Bob Duff <duff@adacore.com> gcc/ada/ * sem_ch13.adb (Object_Size): Give an error for zero. It really rubs me the wrong way that we don't honor "for T'Object_Size use 0;", but it's not important enough to fix. In any case, if we're not going to obey the clause, we should give an error. gcc/testsuite/ * gnat.dg/object_size1.adb: New testcase. From-SVN: r274722
Diffstat (limited to 'gcc/ada/sem_spark.adb')
0 files changed, 0 insertions, 0 deletions