Commit 4af4c79a by Arnaud Charlet Committed by Pierre-Marie de Rodat

[Ada] Only unnest subprograms if no previous errors were detected

2018-07-16  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

	* frontend.adb: Only unnest subprograms if no previous errors were
	 detected.

From-SVN: r262729
parent 4aba11ee
2018-07-16 Arnaud Charlet <charlet@adacore.com>
* frontend.adb: Only unnest subprograms if no previous errors were
detected.
2018-07-16 Ed Schonberg <schonberg@adacore.com>
* exp_ch7.adb (Check_Unnesting_Elaboration_Code): Handle loops that
......
......@@ -466,7 +466,9 @@ begin
-- At this stage we can unnest subprogram bodies if required
Exp_Unst.Unnest_Subprograms (Cunit (Main_Unit));
if Total_Errors_Detected = 0 then
Exp_Unst.Unnest_Subprograms (Cunit (Main_Unit));
end if;
-- List library units if requested
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment