[Ada] Misplace of internal master renaming declaration

Pierre-Marie de Rodat derodat@adacore.com
Thu Jul 16 09:20:52 GMT 2020


This patch fixes a regression introduced by the recent work done for
tagged type constructors with task components.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* exp_ch3.adb (Expand_N_Full_Type_Declaration): Ensure a _master
	declaration on limited types that might have tasks.
	* exp_ch9.adb (Build_Master_Renaming): For private types, if we
	are processing declarations in the private part, ensure that
	master is inserted before its full declaration; otherwise the
	master renaming may be inserted in the public part of the
	package (and hence before the declaration of its _master
	variable).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 2325 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200716/907c71b3/attachment-0001.bin>


More information about the Gcc-patches mailing list