-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Nested context type mismatch -> ICE when building vibe.d #739
Comments
Fairly minimal testcase in terms of non-Phobos code: module router;
struct MatchTree
{
struct TerminalTag {}
TerminalTag[] m_terminalTags;
void print()
{
import std.algorithm;
import std.array;
m_terminalTags.map!(t => "").array;
}
} module bson;
import std.algorithm; Build as
The other way round, the issues does not appear. |
Another round of Dustmite and some more manual simplification later: module algorithm;
import range;
template map(fun...) {
auto map(Range)(Range) {
return MapResult!(fun, Range)();
}
}
struct MapResult(alias fun, R) {
R _input;
MapResult opSlice() {
return MapResult();
}
} module range;
void array(Range)(Range r) {} module router;
import algorithm;
import range;
struct MatchTree {
struct TerminalTag {}
TerminalTag[] m_terminalTags;
void print() {
m_terminalTags.map!(t => "").array;
}
}
|
dnadlinger
added a commit
to dnadlinger/ldc
that referenced
this issue
Oct 11, 2014
This fixes a regression introduced in caa2f15. The IrDsymbol metadata is obviously reset in between modules, while IrTypes are not. Thus, we can never set symbol metadata when resolving types, as the symbol data will be wrong in all modules following the one where the type was first resolved. GitHub: Fixes ldc-developers#739.
dnadlinger
added a commit
to ldc-developers/dmd-testsuite
that referenced
this issue
Oct 11, 2014
dnadlinger
added a commit
to dnadlinger/ldc
that referenced
this issue
Oct 11, 2014
dnadlinger
added a commit
to dnadlinger/ldc
that referenced
this issue
Oct 11, 2014
dnadlinger
added a commit
to ldc-developers/dmd-testsuite
that referenced
this issue
Oct 12, 2014
dnadlinger
added a commit
to dnadlinger/ldc
that referenced
this issue
Oct 12, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another nested context problem when building vibe.d (from the 0.7.21-rc.2 Git tag):
Dustmite is running on this right now.
The text was updated successfully, but these errors were encountered: