[Ada] Add missing Sloc on new explicit dereferences
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 10 Mar 2020 11:14:49 +0000 (12:14 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 10 Jun 2020 13:35:01 +0000 (09:35 -0400)
commit5c0c89cb163ec78c3dd1ca7cdffe026c706bedd7
tree0b9c8fa664da7e78551acf6ceb4bf7443bb6cbda
parentf95fb9d019147b2af0c8107d6c6a6e2b6034d9fe
[Ada] Add missing Sloc on new explicit dereferences

2020-06-10  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* sem_util.adb (Copy_And_Maybe_Dereference): Temporarily copy
the parent node of the original tree when dereferencing.
gcc/ada/sem_util.adb