OSDN Git Service

2008-03-26 Ed Schonberg <schonberg@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Mar 2008 07:41:53 +0000 (07:41 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Mar 2008 07:41:53 +0000 (07:41 +0000)
commitf2e9c237bbfbd7f0f7412ba7ebcf6add7741f188
treee2a0cb6cf6596e59e38f948692d5cb4b9baaf440
parent135ab6257978713aa60f05afefa3b59c5c11914b
2008-03-26  Ed Schonberg  <schonberg@adacore.com>

* sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
a generic subprogram that is imported, do not attempt to compile
non-existent body.

* sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
imported, do not generate a raise_program_error for the non-existent
body.
(Pre_Analyze_Actuals): If an error is detected during pre-analysis,
perform minimal name resolution on the generic to avoid spurious
warnings.
(Find_Actual_Type): the designated type of the actual in a child unit
may be declared in a parent unit without being an actual.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133575 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/sem_ch10.adb
gcc/ada/sem_ch12.adb