[Ada] Do not analyze expression functions for dispatch tables
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 22 Apr 2022 20:27:22 +0000 (22:27 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 30 May 2022 08:29:02 +0000 (08:29 +0000)
commit79b7ab68bce24103adc388d184ff74755914cdda
treef02eb4d6bde2d0e8a4528457ed223a0b984363c7
parent764169055b5b083f1f2167122c637ddc72c58095
[Ada] Do not analyze expression functions for dispatch tables

There is no need to analyze expression functions that are primitives of a
tagged type for its dispatch table because they will be analyzed at the end
of the current scope.

gcc/ada/

* sem_attr.adb (Resolve_Attribute) <Attribute_Access>: Don't analyze
the body of an expression function in the case of a dispatch table.
gcc/ada/sem_attr.adb