]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Do not crash with -gnatR3 on Ghost aspects
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Aug 2019 09:52:39 +0000 (09:52 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Aug 2019 09:52:39 +0000 (09:52 +0000)
commit66e0a3d909032d11df6f941048f213489c076f3e
treec76e8d51ba35da7c5dc2414e119d46d00077690a
parent493b094c3b1299eac48591d35550646249eef433
[Ada] Do not crash with -gnatR3 on Ghost aspects

2019-08-14  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* sem_aux.adb (Next_Rep_Item): If a node in the rep chain
involves a Ghost aspect it may have been replaced by a null
statement; use the original node to find next Rep_Item.
* repinfo.adb (List_Entities): Do not list an Ignored
Ghost_Entity, for which information may have been deleted.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@274470 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/repinfo.adb
gcc/ada/sem_aux.adb