]> gcc.gnu.org Git - gcc.git/commit
ada: Bad internal naming when using pragma Compile_Time_Error
authorJustin Squirek <squirek@adacore.com>
Tue, 9 Jan 2024 15:08:08 +0000 (15:08 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 7 May 2024 07:55:53 +0000 (09:55 +0200)
commit8a116c6539b044ec20bd9fd604887a0a2e21a10e
tree55d0cf8eec4547766c13208daba05962fb6b19a4
parent41ebf2e641f85560452cb4cea35a7f3f013982bc
ada: Bad internal naming when using pragma Compile_Time_Error

This patch fixes an error in the compiler whereby the presence of a condition
which tests the size of a type not known at compile time within an instance
of pragma Compile_Time_Error causes incorrect internal names to be generated
for said type during expansion.

gcc/ada/

* sem_prag.adb (Defer_Compile_Time_Warning_Error_To_BE): Better
handle itypes such that the tree copy required for the expansion
of the pragma doesn't cause ordering problems with internal names.
gcc/ada/sem_prag.adb
This page took 0.062638 seconds and 5 git commands to generate.