]> git.ipfire.org Git - thirdparty/gcc.git/commit
sem_ch13.adb (Add_Invariants): Analyze the invariant expression as an assertion expre...
authorYannick Moy <moy@adacore.com>
Mon, 1 Oct 2012 08:33:04 +0000 (08:33 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 1 Oct 2012 08:33:04 +0000 (10:33 +0200)
commit3db3967673655193c5478148872aadca7fb0a925
treeeb66d1758b9bbc36266454b1f67f25c8318cf12d
parent3f5e1e076e44c9af6920085e52c170f40cd73ae3
sem_ch13.adb (Add_Invariants): Analyze the invariant expression as an assertion expression.

2012-10-01  Yannick Moy  <moy@adacore.com>

* sem_ch13.adb (Add_Invariants): Analyze the invariant expression
as an assertion expression.
* sem_ch3.adb / sem_ch3.ads (Preanalyze_Assert_Expression):
New procedure that wraps a call to Preanalyze_Spec_Expression
for assertion expressions, so that In_Assertion_Expr can be
properly adjusted.
* sem_prag.adb (Analyze_PPC_In_Decl_Part
Check_Precondition_Postcondition Preanalyze_CTC_Args): Call the
new Preanalyze_Assert_Expression.

From-SVN: r191898
gcc/ada/ChangeLog
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch3.ads
gcc/ada/sem_prag.adb