]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix internal error on protected type with -gnatc -gnatR
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 28 May 2024 11:03:19 +0000 (13:03 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 21 Jun 2024 08:34:23 +0000 (10:34 +0200)
commitfbe4dd20b9f25eaa0b6b90d008aff4708e47765b
treedb9fdec49acf1471cd62a1f14ed537dfb00b102d
parent2b510ac3aa521c6984495c63547914f271f1f51c
ada: Fix internal error on protected type with -gnatc -gnatR

It occurs when the body of a protected subprogram is processed, because the
references to the components of the type have not been properly expanded.

gcc/ada/

* gcc-interface/trans.cc (Subprogram_Body_to_gnu): Also return early
for a protected subprogram in -gnatc mode.
gcc/ada/gcc-interface/trans.cc