[Ada] Only assign type to op if compatible
authorGhjuvan Lacambre <lacambre@adacore.com>
Fri, 18 Jun 2021 15:18:41 +0000 (17:18 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 20 Sep 2021 12:31:30 +0000 (12:31 +0000)
commit0f5356c4bfeb42fcab6e2681709a386abf2c0ba1
treed3d27fa9811034e614a1f1828355778daca2bc35
parent518cededb0ca426ef6fd04bb9e4db2082da671e2
[Ada] Only assign type to op if compatible

gcc/ada/

* sem_ch4.adb (Find_Non_Universal_Interpretations): Check if
types are compatible before adding interpretation.
gcc/ada/sem_ch4.adb