aboutsummaryrefslogtreecommitdiff
path: root/gcc/range-op-float.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2023-04-24 17:11:01 +0200
committerMarc Poulhiès <poulhies@adacore.com>2023-06-13 09:31:44 +0200
commit54dd56f5c82ff26e46e8b24214d0988da8e3ad8a (patch)
tree9cf1b52a7b3a4d2cc2f1684119cb286e87233182 /gcc/range-op-float.cc
parentc0ceba6c86ae4fcefa720b0976c58481c903eb63 (diff)
downloadgcc-54dd56f5c82ff26e46e8b24214d0988da8e3ad8a.zip
gcc-54dd56f5c82ff26e46e8b24214d0988da8e3ad8a.tar.gz
gcc-54dd56f5c82ff26e46e8b24214d0988da8e3ad8a.tar.bz2
ada: Fix internal error on imported function with post-condition
The problem, which is also present for an expression function, is that the function is invoked in the initializing expression of a variable declared in the same declarative part as the function, which causes the freezing of its artificial body before the post-condition is analyzed on its spec. gcc/ada/ * contracts.adb (Analyze_Entry_Or_Subprogram_Body_Contract): For a subprogram body that has no contracts and does not come from source, make sure that contracts on its corresponding spec are analyzed, if any, before expanding them.
Diffstat (limited to 'gcc/range-op-float.cc')
0 files changed, 0 insertions, 0 deletions