This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r273670 - in /trunk/gcc: ada/ChangeLog ada/free...
- From: pmderodat at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 22 Jul 2019 13:56:36 -0000
- Subject: r273670 - in /trunk/gcc: ada/ChangeLog ada/free...
Author: pmderodat
Date: Mon Jul 22 13:56:36 2019
New Revision: 273670
URL: https://gcc.gnu.org/viewcvs?rev=273670&root=gcc&view=rev
Log:
[Ada] Crash in C++ constructor without external and link name
The compiler blows up processing the declaration of a tagged type
variable that has a C++ constructor without external or link name. After
this patch the frontend reports an error.
2019-07-22 Javier Miranda <miranda@adacore.com>
gcc/ada/
* freeze.adb (Freeze_Subprogram): Check that C++ constructors
must have external or link name.
gcc/testsuite/
* gnat.dg/cpp_constructor2.adb: New testcase.
Added:
trunk/gcc/testsuite/gnat.dg/cpp_constructor2.adb
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/freeze.adb
trunk/gcc/testsuite/ChangeLog