https://issues.dlang.org/show_bug.cgi?id=14667
Issue ID: 14667
Summary: Assertion failed: (type->ty != Tstruct || ((TypeStruct
*)type)->sym == this), function semantic, file
struct.c, line 929.
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
In src/d/base/location.d
***************
struct Location {
import d.lexer;
}
In src/d/lexer.d
***************
import d.base.location;
***************
$ dmd -c -ofobj/d.o libd/src/d/base/location.d -Isrc
libd/src/d/lexer.d(1): Error: module location from file
libd/src/d/base/location.d must be imported with 'import location;'
Assertion failed: (type->ty != Tstruct || ((TypeStruct *)type)->sym == this),
function semantic, file struct.c, line 929.
Abort trap: 6
Sure the first error is justified, but the assertion failure is somewhat
unexpected. Also, it may reveal a deeper problem.
--