ada: Fix small fallout of previous change
commit6fe8909606f79db1fb2107336544b058eaeb6381
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 5 Apr 2023 21:53:18 +0000 (5 23:53 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 29 May 2023 08:23:21 +0000 (29 10:23 +0200)
treee45f55d72516e43e52010531fc692623a96408c7
parent5c934733eb116cf9742798bd571f147f0eb7086a
ada: Fix small fallout of previous change

It may lead to an infinite recursion if no interpretation exists.

gcc/ada/

* sem_res.adb (Try_User_Defined_Literal): Restrict previous change
to non-leaf nodes.
gcc/ada/sem_res.adb