]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ada/sem_ch8.adb
sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute as a actual...
authorEd Schonberg <schonberg@adacore.com>
Wed, 30 Jul 2008 15:52:58 +0000 (17:52 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 30 Jul 2008 15:52:58 +0000 (17:52 +0200)
commit6a4d72a6d9aec655e70fdbdf548c9ed00c0350db
tree73834d6791dd4a6ffb55a7f7466b9fa288ad731b
parent706d74594af2a6d72b160ad214881ba75502ae82
sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute as a actual in an instance...

2008-07-30  Ed Schonberg  <schonberg@adacore.com>

* sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
as a actual in an instance, check for a missing attribute to prevent
program_error on an illegal program.

* exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
error if primitive is not found, so that exception can be handled
elsewhere on illegal programs.

From-SVN: r138322
gcc/ada/exp_util.adb
gcc/ada/sem_ch8.adb