r273399 - in /trunk/gcc: ada/ChangeLog ada/exp_...
pmderodat@gcc.gnu.org
pmderodat@gcc.gnu.org
Thu Jul 11 08:02:00 GMT 2019
Author: pmderodat
Date: Thu Jul 11 08:02:53 2019
New Revision: 273399
URL: https://gcc.gnu.org/viewcvs?rev=273399&root=gcc&view=rev
Log:
[Ada] Crash on protected type with self-referential component
This patch fixes a compiler abort on a declarastion for a protected type
PT when one of its private component is of type access PT.
2019-07-11 Ed Schonberg <schonberg@adacore.com>
gcc/ada/
* exp_ch9.adb (Expand_N_Protected_Type_Declaaration): New
subsidiary routine Replace_Access_Definition, to handle properly
a protected type PT one of whose private components is of type
access PT.
gcc/testsuite/
* gnat.dg/prot8.adb, gnat.dg/prot8.ads: New testcase.
Added:
trunk/gcc/testsuite/gnat.dg/prot8.adb
trunk/gcc/testsuite/gnat.dg/prot8.ads
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/exp_ch9.adb
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list