]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Spurious error on generalized prefix notation
authorJavier Miranda <miranda@adacore.com>
Thu, 7 Aug 2025 09:42:15 +0000 (09:42 +0000)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 9 Sep 2025 12:39:58 +0000 (14:39 +0200)
commite7c526a40c134353f425965a2a595e572ebfdcf7
tree8b24c45b98ad05ba7ab17e4332d8a817df302943
parent0cdb59dcce86c060d828d751b666757edb6af0b3
ada: Spurious error on generalized prefix notation

The compiler reports a spurious error when a primitive function of
an untagged type that returns an array type is invoked using the
prefix notation, and the sources are compiled with language
extensions enabled.

gcc/ada/ChangeLog:

* sem_util.adb (Needs_One_Actual): Add support for untagged record
types when the sources are compiled with Core Extensions allowed.
gcc/ada/sem_util.adb