Commit ebeabe04 by Arnaud Charlet Committed by Pierre-Marie de Rodat

[Ada] Ensure constructor is a C++ constructor

2019-10-10  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

	* freeze.adb (Freeze_Subprogram): Ensure constructor is a C++
	constructor.

From-SVN: r276835
parent 96dd5bb6
2019-10-10 Gary Dismukes <dismukes@adacore.com>
2019-10-10 Arnaud Charlet <charlet@adacore.com>
* libgnat/a-ststio.ads (File_Type): Apply pragma
Preelaborable_Initialization to the type.
\ No newline at end of file
* freeze.adb (Freeze_Subprogram): Ensure constructor is a C++
constructor.
\ No newline at end of file
......@@ -8780,6 +8780,7 @@ package body Freeze is
-- (either in pragma CPP_Constructor or in a pragma import).
if Is_Constructor (E)
and then Convention (E) = Convention_CPP
and then
(No (Interface_Name (E))
or else String_Equal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment