]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Crash on assignment of task allocator with expanded name
authorBob Duff <duff@adacore.com>
Fri, 15 Nov 2024 20:18:46 +0000 (15:18 -0500)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 12 Dec 2024 09:57:56 +0000 (10:57 +0100)
commit2e6a337a3eab5d3dacc45fb672894e25366eab7c
treee7cee9c9f5431222455531107c427051bb562e0d
parent10131a4d6e48aea7ae67f0a9f17bd74841d03cff
ada: Crash on assignment of task allocator with expanded name

The compiler crashes on an assignment statement of the form
"X.Y := new T;", where X.Y is an expanded name (i.e. not a record
component or similar) and T is a type containing tasks.

gcc/ada/ChangeLog:

* exp_util.adb (Build_Task_Image_Decls):
Deal properly with the case of an expanded name.
Minor cleanup: use a case statement instead of if/elsif chain.
gcc/ada/exp_util.adb