]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix assertion failure on predicate involving access parameter
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 21 May 2024 17:49:32 +0000 (19:49 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 21 Jun 2024 08:34:18 +0000 (10:34 +0200)
commitc5aed359a563c48f616d58f708c398f8494d7731
tree76b00fb77bc57287279ee08e3769a1f437bd762a
parenta0546a36e007d1def02f5a575d1b4e2a08a66115
ada: Fix assertion failure on predicate involving access parameter

The assertion fails because the Original_Node of the expression has no Etype
since its an unanalyzed identifier.

gcc/ada/

* accessibility.adb (Accessibility_Level): Apply the processing to
Expr when its Original_Node is an unanalyzed identifier.
gcc/ada/accessibility.adb