diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2019-08-12 09:00:04 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2019-08-12 09:00:04 +0000 |
commit | 62f0fa2170c3875c28171caa4e1ce3a16a0dc18b (patch) | |
tree | 0855280e3418d38c2b3c6037a51c739bdad20306 /gcc/tree.c | |
parent | 651c9c1e4b1bd2369ced718599ad1ac370aa37cd (diff) | |
download | gcc-62f0fa2170c3875c28171caa4e1ce3a16a0dc18b.zip gcc-62f0fa2170c3875c28171caa4e1ce3a16a0dc18b.tar.gz gcc-62f0fa2170c3875c28171caa4e1ce3a16a0dc18b.tar.bz2 |
[Ada] Improve error message for Object_Size clause on dynamic array
This makes the compiler issue the same error:
size clause not allowed for variable length type
for an Object_Size clause on a variable-sized type as for a Size clause,
for example on the following procedure:
procedure P (X, Y : Integer) is
subtype Sub is String (X .. Y) with Object_Size => 64;
begin
null;
end;
2019-08-12 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* freeze.adb (Freeze_Entity): Give the same error for an
Object_Size clause on a variable-sized type as for a Size
clause.
From-SVN: r274294
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions