]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Type conversion in instance incorrectly rejected.
authorSteve Baird <baird@adacore.com>
Mon, 8 Jul 2024 21:45:55 +0000 (14:45 -0700)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 14 Oct 2024 10:20:17 +0000 (12:20 +0200)
commitfb61a7a203c5de3552e11bd633bc351463e51594
tree36b665283af7316def1d7f0a166ff2027d315e93
parent30e071ab5639ad534d0c9ea75d16359c516bbf80
ada: Type conversion in instance incorrectly rejected.

In some cases, a legal type conversion in a generic package is correctly
accepted but the corresponding type conversion in an instance of the generic
is incorrectly rejected.

gcc/ada/
PR ada/114593
* sem_res.adb (Valid_Conversion): Test In_Instance instead of
In_Instance_Body.
gcc/ada/sem_res.adb