]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix small oversight in accessibility change
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 22 Dec 2025 09:52:01 +0000 (10:52 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 9 Jan 2026 10:57:22 +0000 (11:57 +0100)
commit8555ca0b832e8136858e27633dad882d8dfd17cb
tree474dfd8818bdc877371ead84c606dbb833433e4c
parent867f8899e404195ae80103bb18e367f96eefa098
ada: Fix small oversight in accessibility change

The change incorrectly turned a Comes_From_Source test initially done on the
type conversion node, into a test on its parent node, that is used to decide
whether to apply an accessibility check to the type conversion.

gcc/ada/ChangeLog:

* exp_ch4.adb (Expand_N_Type_Conversion): Restore Comes_From_Source
test on N itself instead of its parent node.
gcc/ada/exp_ch4.adb