r260726 - in /trunk/gcc/ada: ChangeLog sem_ch12...
pmderodat@gcc.gnu.org
pmderodat@gcc.gnu.org
Fri May 25 09:03:00 GMT 2018
Author: pmderodat
Date: Fri May 25 09:03:59 2018
New Revision: 260726
URL: https://gcc.gnu.org/viewcvs?rev=260726&root=gcc&view=rev
Log:
[Ada] Strengthen checks for instantiation with interface types
2018-05-25 Ed Schonberg <schonberg@adacore.com>
gcc/ada/
* sem_ch12.adb (Instance_Exists): New function, subsidiary of
Validate_Derived_Type_Instance, to verify that all interfaces
implemented by the formal type are also implemented by the actual. The
verification is complicated when an interface of the formal is declared
in a generic unit and the actual is declared in an instance of it.
There is currently no mechanism to relate an interface declared within
a generic to the corresponding interface in an instance, so we must
traverse the list of interfaces of the actual, looking for a name
match, and verifying that that interface is declared in an instance.
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/sem_ch12.adb
More information about the Gcc-cvs
mailing list