https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62235
--- Comment #15 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Tue Sep 5 09:49:34 2017 New Revision: 251707 URL: https://gcc.gnu.org/viewcvs?rev=251707&root=gcc&view=rev Log: 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. Added: branches/gcc-7-branch/gcc/testsuite/gnat.dg/incomplete5.adb - copied unchanged from r251706, trunk/gcc/testsuite/gnat.dg/incomplete5.adb branches/gcc-7-branch/gcc/testsuite/gnat.dg/incomplete5.ads - copied unchanged from r251706, trunk/gcc/testsuite/gnat.dg/incomplete5.ads branches/gcc-7-branch/gcc/testsuite/gnat.dg/incomplete5_pkg.adb - copied unchanged from r251706, trunk/gcc/testsuite/gnat.dg/incomplete5_pkg.adb branches/gcc-7-branch/gcc/testsuite/gnat.dg/incomplete5_pkg.ads - copied unchanged from r251706, trunk/gcc/testsuite/gnat.dg/incomplete5_pkg.ads Modified: branches/gcc-7-branch/gcc/ada/ChangeLog branches/gcc-7-branch/gcc/ada/gcc-interface/decl.c branches/gcc-7-branch/gcc/testsuite/ChangeLog