ada: Crash on C++ constructor of private type
commit63c8e3a136860f967ba29ba64ef261f94ceb6fc8
authorJavier Miranda <miranda@adacore.com>
Mon, 8 May 2023 19:10:56 +0000 (8 19:10 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 15 Jun 2023 07:59:33 +0000 (15 09:59 +0200)
tree82ef3a4c959f5e39dddb1b893b547a7ec0af440d
parent4b14ffb9a86b938f6bd3073cffb4c39a5223f9f6
ada: Crash on C++ constructor of private type

The compiler crashes compiling a function that has pragma
CPP_constructor when its return type is a private type.

gcc/ada/

* sem_util.adb
(Is_CPP_Constructor_Call): Add missing support for calls to
functions returning a private type.
gcc/ada/sem_util.adb