]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Adjust source location for degenerate scope master
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 15 Dec 2023 12:08:38 +0000 (13:08 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 6 May 2024 09:11:25 +0000 (11:11 +0200)
commit6cc4ac7d151e432b75da58d44d2ffb53192e04b5
tree2cda95ade53c0a251a9f4b42c2909109746948db
parentcdf15b4b661c5fa1a210642e0b2a508969faf197
ada: Adjust source location for degenerate scope master

When the finalization scope master degenerates into a simple master node,
the latter must inherit the source location that the former would have had.

gcc/ada/

* exp_ch7.adb (Build_Finalizer.Process_Object_Declaration): Adjust
the Sloc of the master node declaration in the degenerate case.
gcc/ada/exp_ch7.adb