Bug 14667 – Assertion failed: (type->ty != Tstruct || ((TypeStruct *)type)->sym == this), function semantic, file struct.c, line 929.
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2015-06-09T00:21:00Z
Last change time
2015-06-09T00:35:26Z
Assigned to
nobody
Creator
deadalnix
Comments
Comment #0 by deadalnix — 2015-06-09T00:21:29Z
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.
Comment #1 by dlang-bugzilla — 2015-06-09T00:35:26Z
*** This issue has been marked as a duplicate of issue 14446 ***