ada: Crash processing pragmas Compile_Time_Error and Compile_Time_Warning
commit85a0ce9086f92ad406bc7093a4a652929bbeb83d
authorJavier Miranda <miranda@adacore.com>
Tue, 19 Sep 2023 13:54:28 +0000 (19 13:54 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 10 Oct 2023 12:12:28 +0000 (10 14:12 +0200)
treebc4f957b5e146a7928bbf7762a5f9712f9b3b546
parenta704603d458b1e55b561ddfb4e513581ee863ed6
ada: Crash processing pragmas Compile_Time_Error and Compile_Time_Warning

gcc/ada/

* sem_attr.adb (Analyze_Attribute): Protect the frontend against
replacing 'Size by its static value if 'Size is not known at
compile time and we are processing pragmas Compile_Time_Warning or
Compile_Time_Errors.
gcc/ada/sem_attr.adb