ada: Add missing guard to previous change
commit40cf86ef4a51438a4c08e5937e5cbc61c1c28ec2
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 24 Nov 2023 11:07:28 +0000 (24 12:07 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 19 Dec 2023 14:27:48 +0000 (19 15:27 +0100)
treeeeb0d799dc63edde2ee8d1ded867963bf5506822
parentcdd8f4b3f2457ff1699b870100acd6c90ca30842
ada: Add missing guard to previous change

Ancestor_Type is overloaded with Aggregate_Bounds on N_Aggregate nodes
so its access needs to be guarded in Copy_Generic_Node.

gcc/ada/

* sem_ch12.adb (Copy_Generic_Node): Add guard for Ancestor_Type.
gcc/ada/sem_ch12.adb