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
ICE: function not fully analyzed; previous unreported errors compiling std.variant.VariantN!(16LU, int, string).VariantN.__xopEquals? #1698
Comments
What you're running into is this, so apparently the automatically generated |
First of all, Dustmite is amazing! It's an incredibly helpful tool! |
Hmm this is a strange one. I reduced it to: M.d: import N;
void foo(C) {} N.d: import std.variant;
class E {
this(void delegate() ) {}
}
class R
{
Algebraic!int[string][] W;
auto Y()
{
new E(
{
foreach (AB; W) AB["path"].get!string;
});
}
}
class C
{
R DB;
}
|
Hmm it gets a bit stranger when actually using import N;
void foo(C c) { c.DB.Y(); }
|
N.d, a bit shorter and still causing the LDC ICE: import std.variant;
class C
{
Algebraic!int[string][] W;
auto foo()
{
auto d = {
foreach (w; W)
w["path"].get!string;
};
}
} |
The difference between |
…tc.) This fixes issue ldc-developers#1698.
Fix issue #1698 (missing semantic3() for special member functions)
Nice, thank you for investigating & resolving this issue! |
You're welcome; thanks for the report, as I'm sure others would have run into this sooner or later too (or already had). |
This is a "spinoff" of issue #1696
I am split-compiling a project. After fixing a lot of issues in the form of:
error: module utils from file /path/to/project/source/mod/utils.d conflicts with another module utils from file source/mod/utils.d
I "fixed" them by manually defining
module
for those projects. This smells like another bug, since there was no actual conflict - the paths are the same, the only exception is that one is absolute and the other one is relative.After resolving these issues, LDC now runs into an ICE when compiling the project:
Any idea what could be wrong here? Can I get LDC to show the "unreported errors" somehow?
The text was updated successfully, but these errors were encountered: