aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/contracts.adb
diff options
context:
space:
mode:
authorHristian Kirtchev <kirtchev@adacore.com>2018-07-16 14:11:47 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2018-07-16 14:11:47 +0000
commit93bc357b34765dcc12709962a074c8001677c27b (patch)
tree7e85803412e5bce56a7455172a6369b381871356 /gcc/ada/contracts.adb
parent7da8b07f30c465a46e41202d897d74ed2ceb8396 (diff)
downloadgcc-93bc357b34765dcc12709962a074c8001677c27b.zip
gcc-93bc357b34765dcc12709962a074c8001677c27b.tar.gz
gcc-93bc357b34765dcc12709962a074c8001677c27b.tar.bz2
[Ada] Spurious error with null Abstract_State
This patch corrects the mechanism which ensures that a package with a null Abstract_State does not introduce hidden state, by ignoring internal states and variables because they do not represent the "source" hidden state. 2018-07-16 Hristian Kirtchev <kirtchev@adacore.com> gcc/ada/ * sem_util.adb (Check_No_Hidden_State): Ignore internally-generated states and variables. gcc/testsuite/ * gnat.dg/abstract_state1.adb, gnat.dg/abstract_state1.ads: New testcase. From-SVN: r262722
Diffstat (limited to 'gcc/ada/contracts.adb')
0 files changed, 0 insertions, 0 deletions