[Ada] Spurious error on formal package with overloaded subprograms
authorEd Schonberg <schonberg@adacore.com>
Tue, 20 Oct 2020 13:42:57 +0000 (09:42 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 26 Nov 2020 08:39:38 +0000 (03:39 -0500)
commit3268fb4dace884ad985965cbd64f3804b2f8fd74
treef668d57c48f17b3556baa67268395c41a80bf722
parent1e00c00d8a74a5f7dc8583aeb146f21e13b252ab
[Ada] Spurious error on formal package with overloaded subprograms

gcc/ada/

* sem_ch12.adb (Instantiate_Formal_Package): If previous matched
entity is overloadable, advance in the list of actuals of the
actual package, to prevent an erroneous match of two adjacent
overloadable homonyms with the same entity.
gcc/ada/sem_ch12.adb