-
-
Notifications
You must be signed in to change notification settings - Fork 727
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
aliasSeq naming conflict #10610
Labels
Comments
Reduced version: alias foo=AliasSeq!(float(13.37));
public import std.datetime, std.meta; |
The root cause appears to be a compiler bug: dlang/dmd#18223 While it is probably possible to work around this issue in Phobos, applying a workaround upstream in druntime would be much easier AFAICT. diff --git a/druntime/src/core/time.d b/druntime/src/core/time.d
index dc79141efa..f14df5b66a 100644
--- a/druntime/src/core/time.d
+++ b/druntime/src/core/time.d
@@ -3925,7 +3925,10 @@ version (CoreUnittest) const(char)* numToStringz()(long value) @trusted pure not
}
-import core.internal.traits : AliasSeq;
+// Workaround for <https://github.com/dlang/dmd/issues/18223>.
+// A selective import of `AliasSeq` happens to bleed through and causes symbol clashes downstream.
+// import.core.internal.traits : AliasSeq;
+import core.internal.traits;
/+ An adjusted copy of std.exception.assertThrown. +/ |
0xEAB
added a commit
to 0xEAB/dmd
that referenced
this issue
Jan 5, 2025
…ime` Workaround for <dlang/phobos#10610>.
0xEAB
added a commit
to 0xEAB/dmd
that referenced
this issue
Jan 5, 2025
…ime` Workaround for: - <dlang#18223> - <dlang/phobos#10610>
0xEAB
added a commit
to 0xEAB/dmd
that referenced
this issue
Jan 5, 2025
…ime` Workaround for: - <dlang#18223> - <dlang/phobos#10610>
0xEAB
added a commit
to 0xEAB/dmd
that referenced
this issue
Jan 5, 2025
…ime` Workaround for: - <dlang#18223> - <dlang/phobos#10610>
0xEAB
added a commit
to 0xEAB/dmd
that referenced
this issue
Jan 5, 2025
…ime` Workaround for: - <dlang#18223> - <dlang/phobos#10610>
thewilsonator
pushed a commit
to dlang/dmd
that referenced
this issue
Jan 5, 2025
…ime` (#20638) Workaround for: - <#18223> - <dlang/phobos#10610>
Works for me since dlang/dmd@1a15d20. |
kinke
pushed a commit
to ldc-developers/ldc
that referenced
this issue
Jan 13, 2025
…ime` (dlang/dmd!20638) Workaround for: - <dlang/dmd#18223> - <dlang/phobos#10610>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
order matters
The text was updated successfully, but these errors were encountered: