diff options
author | Javier Miranda <miranda@adacore.com> | 2011-12-21 13:54:55 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-12-21 14:54:55 +0100 |
commit | 539fcb458bc5cd2a927626985edf635ba60585de (patch) | |
tree | f973268ca7fb94b0e3deb8e6f4f6136c72e29db3 /gcc/ada/sem_ch3.ads | |
parent | 4172a8e33873fc9c93121fccfa97d5d22aff1537 (diff) | |
download | gcc-539fcb458bc5cd2a927626985edf635ba60585de.zip gcc-539fcb458bc5cd2a927626985edf635ba60585de.tar.gz gcc-539fcb458bc5cd2a927626985edf635ba60585de.tar.bz2 |
sem_ch3.ads, [...] (Check_CPP_Type): New subprogram.
2011-12-21 Javier Miranda <miranda@adacore.com>
* sem_ch3.ads, sem_ch3.adb (Check_CPP_Type): New subprogram.
(Process_Full_View): Invoke Check_CPP_Type if processing the
full-view of a CPP type.
* sem_prag.adb (Process_Import_Or_Interface): Add missing support
for importing a CPP type that has an incomplete declaration. Move
to new routine Check_CPP_Type the code that verifies that
components of imported CPP types do not have default expressions.
From-SVN: r182587
Diffstat (limited to 'gcc/ada/sem_ch3.ads')
-rw-r--r-- | gcc/ada/sem_ch3.ads | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch3.ads b/gcc/ada/sem_ch3.ads index 514cdf3..7b4d2a9 100644 --- a/gcc/ada/sem_ch3.ads +++ b/gcc/ada/sem_ch3.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1992-2010, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2011, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -115,6 +115,10 @@ package Sem_Ch3 is -- and errors are posted on that node, rather than on the declarations that -- require completion in the package declaration. + procedure Check_CPP_Type (T : Entity_Id); + -- Check that components of imported CPP type T do not have default + -- expressions because the constructor (if any) is on the C++ side. + procedure Derive_Subprogram (New_Subp : in out Entity_Id; Parent_Subp : Entity_Id; |