Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler crash with pragma Ada_2022 on body #428

Open
simonjwright opened this issue Feb 27, 2024 · 2 comments
Open

Compiler crash with pragma Ada_2022 on body #428

simonjwright opened this issue Feb 27, 2024 · 2 comments

Comments

@simonjwright
Copy link
Contributor

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.

@simonjwright
Copy link
Contributor Author

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.

@pat-rogers
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants