[Ada] Fix expansion of 'Count in protected types
authorJavier Miranda <miranda@adacore.com>
Mon, 16 Jul 2018 14:10:08 +0000 (14:10 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 16 Jul 2018 14:10:08 +0000 (14:10 +0000)
commit97710dc73178bb3a45712d69c9dcefc66bc3fb5f
tree22e93ac7ae7777537913328cc88569b95a66f744
parent4bde5d8c904df3ab4541e1df47c3916c97135124
[Ada] Fix expansion of 'Count in protected types

2018-07-16  Javier Miranda  <miranda@adacore.com>

gcc/ada/

* exp_attr.adb (Expand_N_Attribute_Reference ['Count]): Do not
transform 'Count into a function call if the current scope has been
eliminated.

From-SVN: r262703
gcc/ada/ChangeLog
gcc/ada/exp_attr.adb