OSDN Git Service

Complete previous check-in.
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jul 2004 14:47:27 +0000 (14:47 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jul 2004 14:47:27 +0000 (14:47 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84154 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/sem_util.adb

index 1f23ef3..11da616 100644 (file)
@@ -5768,6 +5768,10 @@ package body Sem_Util is
       --  has discriminant defaults if it is a discriminated record).
 
       elsif Is_Record_Type (Typ) then
+         if Has_Discriminants (Typ) then
+            return True;
+         end if;
+
          declare
             Comp : Entity_Id;
          begin