r274294 - in /trunk/gcc/ada: ChangeLog freeze.adb

pmderodat@gcc.gnu.org pmderodat@gcc.gnu.org
Mon Aug 12 09:06:00 GMT 2019


Author: pmderodat
Date: Mon Aug 12 09:00:04 2019
New Revision: 274294

URL: https://gcc.gnu.org/viewcvs?rev=274294&root=gcc&view=rev
Log:
[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.

Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/freeze.adb



More information about the Gcc-cvs mailing list