-
Notifications
You must be signed in to change notification settings - Fork 37
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
Possible Newer Version of GNAT not compiling this project. #74
Comments
Paste the output of |
|
any idea? Still unable to generate sdlada, and there is no binary distributed anywhere. |
No, because it should work, it's assigning a constant access variable to another in the creation of a new iterator from an iterator of the same type. You could try gcc 11 to see if it's a bug in gcc 10, I currently only have gcc 9.3.0 built. Or try replacing: overriding
function First (Object : Iterator) return Cursor is
begin
-- Put_Line ("First -> Index = " & Natural'Image (Object.Index));
return Cursor'(Container => Object.Container,
Index => Object.Index,
Current => Object.Container.Data.Colours);
end First; With: overriding
function First (Object : Iterator) return Cursor is
begin
-- Put_Line ("First -> Index = " & Natural'Image (Object.Index));
return C : Cursor do
C.Container := Object.Container;
C.Index := Object.Index;
C.Current := Object.Container.Data.Colours;
end return;
end First; And see if that works. |
Did this work? |
I get the same error.
|
The patch proposed above does not work here. After applying the changes, I still get:
(My goal is to get the Ada example in |
This is the same as #62 |
Using 997d2ae, the sdl2-examples demo works on macOS Big Sur with FSF GCC 11.1.0 and GNAT CE 2021 (out-of-the-box, bar macOS framework linking stuff as in the example) |
Originally reported here. My suspicion is that the latest version of ada has a new feature which does not allow this anonymous type usage anymore.
The text was updated successfully, but these errors were encountered: