]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Cleanup analysis of quantified expressions with empty ranges
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 18 Jul 2022 14:14:55 +0000 (16:14 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 5 Sep 2022 07:21:02 +0000 (09:21 +0200)
commit7c23b88c1fc2303d7c5c09334f00d10c5456aa53
tree11b386598963d8dc2ec9a9b015fd5df885a698d5
parent72c5ce77a028e57048c8666a7b782e3b921ee28c
[Ada] Cleanup analysis of quantified expressions with empty ranges

Cleanup handling of quantified expressions before using it as an inspiration
for fixing the handling of iterated component associations. Behavior is
unaffected.

gcc/ada/

* sem_ch4.adb
(Is_Empty_Range): Move error reporting to the caller.
(Analyze_Qualified_Expression): Move error reporting from Is_Empty_Range;
add matching call to End_Scope before rewriting and returning.
gcc/ada/sem_ch4.adb