]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Missing error on expression function returning incomplete type
authorJavier Miranda <miranda@adacore.com>
Tue, 4 Feb 2025 19:41:53 +0000 (19:41 +0000)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 5 Jun 2025 08:18:37 +0000 (10:18 +0200)
commit9fc6eedace2607c5e322f4b874f290975f0d2b0e
tree820d82ad81a07498cded5e7d6fb7772b37caddca
parent4405925143b620b9c18889cc79433d90100416d7
ada: Missing error on expression function returning incomplete type

When the type of the expression of an expression function is
an incomplete type, the frontend does not report the expected
error.

gcc/ada/ChangeLog:

* sem_ch6.adb (Analyze_Expression_Function): Add missing check
on premature use of incomplete type.
gcc/ada/sem_ch6.adb