[Ada] Missing implicit interface type conversion

Pierre-Marie de Rodat derodat@adacore.com
Wed Jul 10 09:03:00 GMT 2019


The compiler skips adding an implicit type conversion when the interface
type is visible through a limited-with clause.

No small reproducer available.

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

2019-07-10  Javier Miranda  <miranda@adacore.com>

gcc/ada/

	* exp_ch6.adb (Is_Class_Wide_Interface_Type): New subprogram.
	(Expand_Call_Helper): Handle non-limited views when we check if
	any formal is a class-wide interface type.
	* exp_disp.adb (Expand_Interface_Actuals): Handle non-limited
	views when we look for interface type formals to force "this"
	displacement.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 3701 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190710/025dd020/attachment.bin>


More information about the Gcc-patches mailing list