]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Plug loophole in handling of No_Raise pragma
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 15 Jul 2024 20:29:06 +0000 (22:29 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 2 Aug 2024 07:08:09 +0000 (09:08 +0200)
commit5f3902ed1d9c7686fa7bad1e24f0c2b40fd35efe
treecb32bd2aac9921fc822f5836b50474bcefab87fa
parent54acd24d5f82766e7ad43a41519b00369ae46863
ada: Plug loophole in handling of No_Raise pragma

Unlike the aspect, the pragma needs to be propagated explicitly from a
generic subprogram to its instances.

gcc/ada/

* sem_ch12.adb (Analyze_Subprogram_Instantiation): Propagate the
No_Raise flag like the No_Return flag.
gcc/ada/sem_ch12.adb