diff options
author | Hristian Kirtchev <kirtchev@adacore.com> | 2018-01-11 08:54:26 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2018-01-11 08:54:26 +0000 |
commit | ed27b86ba18a1ffed8ae002412250f0765ab3e72 (patch) | |
tree | 9b8d4fcb251784a5801cf49533fcb736cd9f87fe /gcc/ada/rtfinal.c | |
parent | 715a5d519184ef4251d590ef874e2ef493e92ffe (diff) | |
download | gcc-ed27b86ba18a1ffed8ae002412250f0765ab3e72.zip gcc-ed27b86ba18a1ffed8ae002412250f0765ab3e72.tar.gz gcc-ed27b86ba18a1ffed8ae002412250f0765ab3e72.tar.bz2 |
[Ada] Missing diagnostic of categorization dependency
This patch modifies the analysis of subprogram bodies to catch a case where a
pure subprogram body unit depends on non-pure units.
2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
gcc/ada/
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Check the
categorization of a subprogram body which does not complete a previous
declaration.
gcc/testsuite/
* gnat.dg/pure_subp_body.adb, gnat.dg/pure_subp_body_pkg.ads: New
testcase.
From-SVN: r256516
Diffstat (limited to 'gcc/ada/rtfinal.c')
0 files changed, 0 insertions, 0 deletions