]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix missing diagnostic with "T'Constructor" syntax
authorRonan Desplanques <desplanques@adacore.com>
Tue, 2 Dec 2025 09:58:48 +0000 (10:58 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 9 Jan 2026 10:57:14 +0000 (11:57 +0100)
commitdf67cd14022815273c38bd9419fbdd1e6eb9ffc9
tree3596f6a0a2e86cd662426336df2e2ceb038622ff
parenta67a5e0fa64df574dbbfd31e7c0e04386c83fec2
ada: Fix missing diagnostic with "T'Constructor" syntax

Before this patch, procedures of the form "T'Constructor" without
separate specs were incorrectly accepted in some cases. This patch fixes
the issue.

gcc/ada/ChangeLog:

* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Check direct
attribute definitions for specs.
gcc/ada/sem_ch6.adb