[Ada] Update entities on class-wide condition function creation
Pierre-Marie de Rodat
derodat@adacore.com
Wed Jul 8 14:57:34 GMT 2020
Problem: Expression functions that have class-wide pre/post conditions
which call functions that are themselves expression functions refer to
entities from a specification that isn't theirs.
Solution: When creating the class-wide clone of the function that has
the class-wide condition, update its entities to refer to the right
spec.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* sem_util.adb (Build_Class_Wide_Clone_Body): Update entities to
refer to the right spec.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1763 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200708/530fd2ca/attachment-0001.bin>
More information about the Gcc-patches
mailing list