Skip to content
Snippets Groups Projects
Commit d734902a authored by Piotr Trojanek's avatar Piotr Trojanek Committed by Marc Poulhiès
Browse files

ada: Fix comments about Subprogram_Variant and Exceptional_Cases

The comment about Subprogram_Variant was outdated after more types have been
allowed by the corresponding SPARK RM rule; the comment about Exceptional_Cases
was incorrect, after being copy-pasted.

gcc/ada/ChangeLog:

	* sem_prag.adb (Analyze_Exceptional_Contract, Analyze_Variant): Fix
	comments.
parent 67e3db71
No related branches found
No related tags found
No related merge requests found
......@@ -2320,8 +2320,7 @@ package body Sem_Prag is
 
Errors := Serious_Errors_Detected;
 
-- Preanalyze_Assert_Expression, but without enforcing any of the two
-- acceptable types.
-- Preanalyze_Assert_Expression enforcing the expression type
 
Preanalyze_Assert_Expression (Consequence, Any_Boolean);
 
......@@ -31380,7 +31379,7 @@ package body Sem_Prag is
 
Errors := Serious_Errors_Detected;
 
-- Preanalyze_Assert_Expression, but without enforcing any of the two
-- Preanalyze_Assert_Expression, but without enforcing any of the
-- acceptable types.
 
Preanalyze_Assert_Expression (Expr);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment