]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix spurious error on imported generic function with precondition
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 10 Apr 2023 08:15:59 +0000 (10:15 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 29 May 2023 08:23:22 +0000 (10:23 +0200)
commitfb828af5933219d95f0f6a98567c09813de2dde1
tree9413ac64e30bc7dc9b0d86355045234eb849ad71
parent61c54dd719630570161551bb52b6e5412fc5f85e
ada: Fix spurious error on imported generic function with precondition

It occurs during the instantiation because the compiler forgets the context
of the generic declaration.

gcc/ada/

* freeze.adb (Wrap_Imported_Subprogram): Use Copy_Subprogram_Spec in
both cases to copy the spec of the subprogram.
gcc/ada/freeze.adb