[Ada] Fix incorrect handling of Ghost aspect

Pierre-Marie de Rodat derodat@adacore.com
Wed Jul 13 10:02:53 GMT 2022

When a formal generic type is marked as Ghost, the instantiation of that
generic will contain a generic subtype for the actual with the Ghost
pragma. Recognize this case.

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


	* sem_prag.adb (Analyze_Pragma): Recognize a generated subtype
	with Ghost pragma for generic instantiations.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 812 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20220713/5735c7d8/attachment.bin>

More information about the Gcc-patches mailing list