decl.c (gnat_to_gnu_entity): For a constant object whose type has self-referential...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 2 Apr 2008 10:06:57 +0000 (10:06 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 2 Apr 2008 10:06:57 +0000 (10:06 +0000)
commitbf1e48d172ead219afc6471252f1a7c775999070
tree0324cb22ae6b92906b1821b9193e435d537bf03a
parent4846b4355c6f0253228e64ade49b8bf34227d693
decl.c (gnat_to_gnu_entity): For a constant object whose type has self-referential size...

* decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
type has self-referential size, get the size from the initializing
expression directly if it is also a constant whose nominal type
has self-referential size.

From-SVN: r133831
gcc/ada/ChangeLog
gcc/ada/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/discr_record_constant.ads [new file with mode: 0644]