Skip to content

Array comprehension formatting failure (gnatpp) #33

@yrashk

Description

@yrashk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions