[Ada] Mimic the C++ ABI when passing class-wide conversion actuals

Pierre-Marie de Rodat derodat@adacore.com
Wed Sep 26 09:25:00 GMT 2018


This patch does not affect the behavior of Ada-only code but improves
consistency with the code generated by the C++ compiler.

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

2018-09-26  Javier Miranda  <miranda@adacore.com>

gcc/ada/

	* sem_res.adb (Resolve_Actuals): If the formal is a class-wide
	type conversion then do not skip resolving and expanding the
	conversion; required to displace the pointer to the object and
	reference the dispatch table associated with the target
	interface type.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 439 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180926/a4df75de/attachment.bin>


More information about the Gcc-patches mailing list