Commit b27f2c40 by Bob Duff Committed by Pierre-Marie de Rodat

[Ada] Do not create a master unless Tasking_Allowed

2019-07-04  Bob Duff  <duff@adacore.com>

gcc/ada/

	* sem_ch3.adb (Access_Definition): Do not create a master unless
	Tasking_Allowed. Otherwise, this fails on restricted runtimes.

From-SVN: r273060
parent dd4d8a71
2019-07-04 Bob Duff <duff@adacore.com>
* sem_ch3.adb (Access_Definition): Do not create a master unless
Tasking_Allowed. Otherwise, this fails on restricted runtimes.
2019-07-04 Hristian Kirtchev <kirtchev@adacore.com>
* sem_util.adb (Propagate_DIC_Attributes): Do not propagate the
......
......@@ -935,6 +935,7 @@ package body Sem_Ch3 is
then
if Is_Limited_Record (Desig_Type)
and then Is_Class_Wide_Type (Desig_Type)
and then Tasking_Allowed
then
Build_Class_Wide_Master (Anon_Type);
......
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