[Ada] Spurious error on precondition of subprogram instantiation
authorJavier Miranda <miranda@adacore.com>
Fri, 13 Dec 2019 09:05:28 +0000 (09:05 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Fri, 13 Dec 2019 09:05:28 +0000 (09:05 +0000)
commitc90e1eca3782b667c081e08dad03aee5b4f16276
treefeac080fee7ac02c28a6cb9c04f4c1504b5d9433
parente1e1e53a4861f5addee43088de14dadf47892f23
[Ada] Spurious error on precondition of subprogram instantiation

2019-12-13  Javier Miranda  <miranda@adacore.com>

gcc/ada/

* sem_ch13.adb (Analyze_Aspect_Specification): Processing a
precondition, if the expression is of the form A and then B, do
not generate separate Pre/Post aspects for the separate clases
when we are processing a generic unit. Required to avoid
reporting spurious visibility errors on the instantiations.

From-SVN: r279365
gcc/ada/ChangeLog
gcc/ada/sem_ch13.adb