AdaCore / libadalang-tools

Libadalang-based tools
GNU General Public License v3.0
16 stars 13 forks source link

Array comprehension formatting failure (gnatpp) #33

Open yrashk opened 4 months ago

yrashk commented 4 months ago

Given this source:

procedure hello is
begin
   A := [for I in 1..10 => I];
   null;
end hello;

gnatpp 23.0.0 doesn't touch the expression and quietly quits, failing to format the file.

24.0.0 fails with: "test.ada:2:1: Error formatting node (CompilationUnitList). Keeping the initial input selection unchanged pp-actions.adb:5877"

Is it an intentional behaviour or an omission?