sem_cat.adb (Validate_RACW_Primitives): Do not rely on Comes_From_Source to exclude...
authorThomas Quinot <quinot@adacore.com>
Wed, 26 Mar 2008 07:41:04 +0000 (08:41 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 26 Mar 2008 07:41:04 +0000 (08:41 +0100)
commit2b2b6798119883d6cc535db15cc19baaae32bb49
treeb801c3ca3d42c4198be9bc589eb7146dccbbb102
parente96db982d28a0ff3ab6e80226c272a072eba9cb7
sem_cat.adb (Validate_RACW_Primitives): Do not rely on Comes_From_Source to exclude primitives from being checked.

2008-03-26  Thomas Quinot  <quinot@adacore.com>

* sem_cat.adb (Validate_RACW_Primitives): Do not rely on
Comes_From_Source to exclude primitives from being checked. We want to
exclude predefined primitives only, so use the appropriate specific
predicate. Also, flag a formal parameter of an anonymous
access-to-subprogram type as illegal for a primitive operation of a
remote access to class-wide type.

From-SVN: r133572
gcc/ada/sem_cat.adb