Skip to content

Compiler crash with pragma Ada_2022 on body #428

Open

Description

@simonjwright

GCC PR 114127 refers.

Using GCC 14.0.1 prerelease, building for STM32F4291, we get a bug box in framebuffer_ili9341.ads because ili9341-device.adb has pragma Ada_2022.

Putting the pragma in the spec (ili9341-device.ads) doesn’t help. Building with -gnat2022 does.

Activity

  1. simonjwright commented on Mar 3, 2024

    @simonjwright
    ContributorAuthor

    But -gnat2022 triggers other warnings-treated-as-errors, specifically the treatment of aggregates in parens as obsolescent -- see PR 104751 -- this issue shows why why I think that is a decision that AdaCore should not have made without consultation.

  2. pat-rogers commented on Mar 11, 2024

    @pat-rogers
    Contributor

    I agree that treating them as obsolescent is intrusive but that's not going to change. I disable those warnings (-gnatwJ) in all my project files now.
    Consequently I suggest we just use the compiler switch (ie -gnat2022) rather than the pragma.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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