[Ada] Spurious error on non-default C++ constructor
authorJavier Miranda <miranda@adacore.com>
Thu, 4 Jul 2019 08:07:24 +0000 (08:07 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 4 Jul 2019 08:07:24 +0000 (08:07 +0000)
commit07c91770f821ae9f6a567fb79b7f2ed675dfeaff
tree2197c7386bf341a7fae35a274dc1ff78ba5aa6bf
parent7cbe60de258f6d09561d4fe32dac8892b52520fe
[Ada] Spurious error on non-default C++ constructor

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

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.

From-SVN: r273072
gcc/ada/ChangeLog
gcc/ada/exp_tss.adb
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/cpp_constructor.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/cpp_constructor_fp.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/cpp_constructor_useit.ads [new file with mode: 0644]