[Ada] Spurious error on non-default C++ constructor

Pierre-Marie de Rodat derodat@adacore.com
Thu Jul 4 09:02:00 GMT 2019


The frontend reports spurious errors on C++ non-default constructors
that have formals whose type is an access to subprogram.

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

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

gcc/ada/

	* exp_tss.adb (Init_Proc): Adding missing support for access to
	subprograms and access to protected subprograms of non-default
	C++ constructors.

gcc/testsuite/

	* gnat.dg/cpp_constructor.adb, gnat.dg/cpp_constructor_fp.ads,
	gnat.dg/cpp_constructor_useit.ads: New testcase.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 2740 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190704/debfe56b/attachment.bin>


More information about the Gcc-patches mailing list