]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Restore parent link for both lists and nodes in class-wide condition
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 3 Apr 2023 14:54:39 +0000 (16:54 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 29 May 2023 08:23:19 +0000 (10:23 +0200)
commit5f691c62b5fee61f72352dac324c3fef57cc8511
tree7ca8d8095c6d6a621bfbe4603f2868e2c951bfc6
parent41448347f4464bceed9c09d9f1401c40118b8797
ada: Restore parent link for both lists and nodes in class-wide condition

When preanalysing class-wide conditions, we restore "Function (Object)"
to its original "Object.Function" notation. This requires the Parent
links to be fixed. We did it for nodes; now we do it for lists as well.

This patch is enough to fix assertion failure in CCG and to make the
tree well-connected. Perhaps there is a more elegant solution, but that
remains to be investigated.

gcc/ada/

* contracts.adb (Fix_Parent): Fir part both for lists and nodes.
gcc/ada/contracts.adb