]> git.ipfire.org Git - thirdparty/gcc.git/commit
Give more informative error message for by-reference types
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 14 Sep 2021 07:41:36 +0000 (09:41 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 14 Sep 2021 07:44:10 +0000 (09:44 +0200)
commit4fc907e18d15e11b5c043af21d4151acb558a98f
tree6aae6cbde4f460f733be53835b94434c089b8bb5
parenta87d7fbef55f72781905bffb298aab698fe6ed40
Give more informative error message for by-reference types

Recent compilers enforce more strictly the RM C.6(18) clause, which says
that volatile record types are by-reference types.  This changes the typical
error message now given in these cases.

gcc/ada/
* gcc-interface/decl.c (gnat_to_gnu_entity) <is_type>: Declare new
constant.  Adjust error message issued by validate_size in the case
of by-reference types.
(validate_size): Always use the error strings passed by the caller.
gcc/ada/gcc-interface/decl.c