Skip to content
Snippets Groups Projects
Commit c0c1e020 authored by Gary Dismukes's avatar Gary Dismukes Committed by Marc Poulhiès
Browse files

ada: GNAT-LLVM compiler crash on container aggregates with iterators

Recent fixes for container aggregates with iterated element associations
exposed a latent bug with loops that are wrapped in blocks, where the loop
entity's scope was not adjusted to reflect the new enclosing block scope.

gcc/ada/

	* sem_ch5.adb (Analyze_Loop_Statement.Wrap_Loop_Statement): Remove
	the loop Entity_Id from its old scope and insert it in the new
	block scope that wraps it.
parent 3e2b3dd7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment