-
Notifications
You must be signed in to change notification settings - Fork 35
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
Cannot build langkit #235
Comments
Requires a simple patch to fix: --- a/langkit/support/langkit_support-adalog-eq_same.ads
+++ b/langkit/support/langkit_support-adalog-eq_same.ads
@@ -123,7 +123,7 @@ package Langkit_Support.Adalog.Eq_Same is
Eq_Data : Equals_Data;
Sloc_Info : String_Access := null) return Relation
is
- (Impl.Equals (L, R, Data, Eq_Data, Sloc_Info));
+ (Relation (Impl.Equals (L, R, Data, Eq_Data, Sloc_Info)));
function Create
(L : LR_Type; |
pmderodat
added a commit
to pmderodat/langkit
that referenced
this issue
Nov 5, 2019
Some versions of GNAT are known to complain about these and anyway they are almost never correct: they are supposed to return an allocation whose lifetime is bound to the caller's whereas we generally return allocations whose lifetime is not statically known. Just replace these anonymous access types with named access types, creating some if needed. Behavior should not change. For GitHub issue AdaCore#235
pmderodat
added a commit
that referenced
this issue
Nov 12, 2019
Some versions of GNAT are known to complain about these and anyway they are almost never correct: they are supposed to return an allocation whose lifetime is bound to the caller's whereas we generally return allocations whose lifetime is not statically known. Just replace these anonymous access types with named access types, creating some if needed. Behavior should not change. For GitHub issue #235
This should be fixed on the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With GCC-7.4.0 using these GNATColl commit ID's
The text was updated successfully, but these errors were encountered: