[Ada] Detect illegal implicit type conversions
authorSteve Baird <baird@adacore.com>
Fri, 13 Dec 2019 09:04:48 +0000 (09:04 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Fri, 13 Dec 2019 09:04:48 +0000 (09:04 +0000)
commita85475beae62f908312ddb233d79cf1df60216e5
tree4e32f241e2e242e0f673cccf4f255525337d4a32
parent02458cc74236718edd74f3d4bd6cc259ebbba5ca
[Ada] Detect illegal implicit type conversions

2019-12-13  Steve Baird  <baird@adacore.com>

gcc/ada/

* sem_res.adb (Resolve, Valid_Conversion): Add Base_Type call
when testing whether a type is a general access type.

From-SVN: r279357
gcc/ada/ChangeLog
gcc/ada/sem_res.adb