public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/ranger] [Ada] Check if attribute Passed_By_Reference is called on incomplete types
@ 2020-06-17 22:51 Aldy Hernandez
0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2020-06-17 22:51 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:29b82c7d55c818bd25b98e0f9469cbe6adec0e34
commit 29b82c7d55c818bd25b98e0f9469cbe6adec0e34
Author: Ghjuvan Lacambre <lacambre@adacore.com>
Date: Fri Apr 3 16:57:40 2020 +0200
[Ada] Check if attribute Passed_By_Reference is called on incomplete types
2020-06-16 Ghjuvan Lacambre <lacambre@adacore.com>
gcc/ada/
* sem_attr.adb (Analyze_Attribute): Add
Check_Not_Incomplete_Type call.
Diff:
---
gcc/ada/sem_attr.adb | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb
index a7d07841458..6f9a7451e91 100644
--- a/gcc/ada/sem_attr.adb
+++ b/gcc/ada/sem_attr.adb
@@ -5202,6 +5202,7 @@ package body Sem_Attr is
when Attribute_Passed_By_Reference =>
Check_E0;
Check_Type;
+ Check_Not_Incomplete_Type;
Set_Etype (N, Standard_Boolean);
------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-17 22:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17 22:51 [gcc/devel/ranger] [Ada] Check if attribute Passed_By_Reference is called on incomplete types Aldy Hernandez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).