re PR ada/62235 (segmentation fault on Ada 2012 code)
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 5 Sep 2017 09:47:21 +0000 (09:47 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 5 Sep 2017 09:47:21 +0000 (09:47 +0000)
commitd3b080bc72ce3f0a707c7755f0917a283ec8c788
treec9d08c3878aec12faca42f7ea41f0941f72f3333
parenta4f7374e4d6bfb7a26bfb85c2c914688d4b07b10
re PR ada/62235 (segmentation fault on Ada 2012 code)

PR ada/62235
* gcc-interface/decl.c (gnat_to_gnu_entity): Skip regular processing
for Itypes that are E_Record_Subtype with a cloned subtype.
<E_Record_Subtype>: Use the DECL of the cloned type directly, if any.

From-SVN: r251706
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/incomplete5.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/incomplete5.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/incomplete5_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/incomplete5_pkg.ads [new file with mode: 0644]