[Ada] Crash on task declaration with Restriction_Warning (No_Tasking)
authorEd Schonberg <schonberg@adacore.com>
Tue, 27 Oct 2020 13:24:51 +0000 (09:24 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 26 Nov 2020 08:39:53 +0000 (03:39 -0500)
commit52424b13d80af31b6004995c1910fb9ee0ab1939
treeb46de0c4384093fc74a54d78efb4b4cf320ec1dd
parent9597d24c7f80ac78eb9beb0b4c8a6310b1c847d3
[Ada] Crash on task declaration with Restriction_Warning (No_Tasking)

gcc/ada/

* sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
when the restriction is a configuration pragma and specifies
No_Tasking, a global flag is set to reject task declarations,
and to prevent the construction of Master entities. The flag
must not be set if the pragma is a Restriction_Warning, in which
case task declarationns are allowed.
gcc/ada/sem_prag.adb